note 23512 deleted from function.ereg-replace by kennyt
| From: | kennyt@php.net | Date: | Wed, 26 Jan 2005 03:55:22 +0000 |
| Subject: | note 23512 deleted from function.ereg-replace by kennyt | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-83988@lists.php.net to get a copy of this message | ||
Note Submitter: totge at freestart dot hu
----
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 );