strip_tags() function is strips a string from HTML, XML, and PHP tags.
Syntax :
strip_tags(string)
string = Specifies the string to check
string = Specifies the string to check
Example :
<?php
$string="<p>PHP CODE</p>
<p>Easy way to learning PHP</p>
";
$strip_tags=strip_tags($string);
echo $strip_tags;
?>
$string="<p>PHP CODE</p>
<p>Easy way to learning PHP</p>
";
$strip_tags=strip_tags($string);
echo $strip_tags;
?>
Output :
Easy way to learning PHP


0 komentar:
Post a Comment