![](http://www.studyzone4u.com/assets/image/ads6.jpg)
PHP | Remove html tags from a string
The strip_tags() function is use to remove any HTML, XML, and PHP tags from a string.
<?php
echo strip_tags("Hello <b><i>world!</i></b>","<b>");
// Output will be Hello world!
?>
The strip_tags() function is use to remove any HTML, XML, and PHP tags from a string.
<?php
echo strip_tags("Hello <b><i>world!</i></b>","<b>");
// Output will be Hello world!
?>