note 23512 added to function.ereg-replace
| From: | totge at freestart dot hu | Date: | Fri, 19 Jul 2002 23:00:22 +0000 |
| Subject: | note 23512 added to function.ereg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33328@lists.php.net to get a copy of this message | ||
I could use this shorter script instead of the 3-lines above. And it also works with lots of quotes
(i.e. so"'""me"bo''d'y"'" returns somebody)
and the output has no backslashes.
$name = ereg_replace( "['\"\]", "", $name );
--
http://www.php.net/manual/en/function.ereg-replace.php
http://master.php.net/manage/user-notes.php?action=edit+23512
http://master.php.net/manage/user-notes.php?action=delete+23512
http://master.php.net/manage/user-notes.php?action=reject+23512