note 50449 rejected from function.ereg-replace by nlopess
| From: | nlopess@php.net | Date: | Tue, 01 Mar 2005 15:21:30 +0000 |
| Subject: | note 50449 rejected from function.ereg-replace by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-85719@lists.php.net to get a copy of this message | ||
Note Submitter: chaupro at yahoo dot com
----
I'm wondering if ereg_replace or eregi_replace can work with arrays if used in a for loop.
eg.
for ($i=0;$i<$arrayLength;$i++)
$newString=eregi_replace($array[$i],"blah",$oldString);
where $array is some array, $arrayLength is its length, and $oldString is the string that has to be
edited.
Thank you.