strip_tags

PHP 4, PHP 5, PHP 7, PHP 8
strip_tags - Strip HTML and PHP tags from a string

Example #1 strip_tags example

Result: Test paragraph. Other text <p>Test paragraph.</p> <a href="#fragment">Other text</a>
PHP Version:


Example #2 of strip_tags

PHP Version:


Function strip_tags:

Strings Functions

Most used PHP functions