note 25401 added to function.ereg-replace
| From: | cyrilrichert at easyexpat dot com | Date: | Sun, 22 Sep 2002 13:07:41 +0000 |
| Subject: | note 25401 added to function.ereg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-37110@lists.php.net to get a copy of this message | ||
If you want to remove all the tags from a text (because for example you show the results a a search
and you want a clean text...) you can do:
$string= ereg_replace('<[^>]*>','',$string);
--
http://www.php.net/manual/en/function.ereg-replace.php
http://master.php.net/manage/user-notes.php?action=edit+25401
http://master.php.net/manage/user-notes.php?action=delete+25401
http://master.php.net/manage/user-notes.php?action=reject+25401