Home >> PHP >> strip_tags() function in PHP

strip_tags() function in PHP

The strip_tags() function used for strips all tags of HTML and PHP in a string.



optional-second parameter to specify tags which should not be stripped.


echo strip_tags("Hello <b>dear</b>");


Hello dear

Post Your Comment

Next Questions
stripslashes() function
stripos() function
stristr() function
strlen() function
strnatcasecmp() function
strnatcmp() function
strncasecmp() function
strncmp() function
strpbrk() function
strpos() function
strrchr() function
strrev() function
strripos() function
strrpos() function
strspn() function
strstr() function
strtok() function
strtolower() function
strtoupper() function
strtr() function
substr() function
substr_compare() function
substr_count() function
substr_replace() function
trim() function

Copyright ©2022 coderraj.com. All Rights Reserved.