note 93879 deleted from function.preg-replace by thiago
| From: | thiago@php.net | Date: | Mon, 05 Oct 2009 11:59:43 +0000 |
| Subject: | note 93879 deleted from function.preg-replace by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161349@lists.php.net to get a copy of this message | ||
Note Submitter: pomax at nihongoresources dot com
----
@erezaton213 (oct 4th): your function is not necessary, as preg_replace already replaces all matches
for the given search pattern.
preg_replace("/a/","x", "abababab"), for instance, will yield
"xbxbxbxb", not "xbababab".