#80. PHP Strip_tags & Wordwrap Function
How to work PHP Strip_tags & Wordwrap Function?
Strip Syntax:
Run Code:
<?php
// Strip tag Remove the All Tags
$str = "Hell <b>Sheikh</b>, Hello <i>World</i>";
echo strip_tags($str, "<b>"); // <i> Remove tag
?>
Wordwrap Syntax:
Run code:
<?php
$str = "This is a chair";
echo wordwrap($str, 3,"<br>", TRUE);
?>


Comments
Post a Comment