.

Wednesday, October 19, 2011

Home » » PHP code - strip_tags

PHP code - strip_tags

strip_tags() function is strips a string from HTML, XML, and PHP tags.



Syntax :
strip_tags(string)

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;
?>

Output :
Easy way to learning PHP

0 komentar:

Post a Comment