Re: [PHP] preg_replace is modifying the type of replacement parameter !!

2001-09-11 Thread Andrey Hristov
Hmmm, RegEx work on strings, so the engine needs strings. Because of that your integers are converted to strings, if you want to give their life back make foreach ($arr as $k=$v){ $arr[$k]+=0; } Now all are integers. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS

RE: [PHP] preg_replace is modifying the type of replacement parameter !!

2001-09-11 Thread Nicolas Guilhot
I understand that RegEx works on strings, but I don't understand why this function modifies the replacement parameter as it is not pass by-reference. Nicolas -Message d'origine- De : Andrey Hristov [mailto:[EMAIL PROTECTED]] Envoyé : mardi 11 septembre 2001 14:34 À : [EMAIL PROTECTED]