• PHP Video Tutorials

PHP - Function Srip Tags



Syntax

string strip_tags ( string $str [, string $allowable_tags ] )

Definition and Usage

It is used to string HTML and PHP tags from a string.

Return Values

It returns the stripped string

Parameters

Sr.No Parameters & Description
1

string

It specifies string to check

2

allow

It specifies allowable tags

Example

Try out the following example

<?php
   echo strip_tags("Tutorials <b><i>Point</i></b>","<b>");
?>

This will produce following result −

Tutorials Point
php_function_reference.htm
Advertisements