PROTECTED]
Objet : Re: [PHP] preg_replace is modifying the type of replacement
parameter !!
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;
CED SOLUTIONS
- Original Message -
From: "Nicolas Guilhot" <[EMAIL PROTECTED]>
To: "Php General MailingList" <[EMAIL PROTECTED]>
Sent: Tuesday, September 11, 2001 3:24 PM
Subject: [PHP] preg_replace is modifying the type of replacement parameter !!
> Hi guy
Hi guys,
When I use preg_replace with an array of integer as the replacement
parameter, this function modifies the type of each array element to string.
I don't understand why it alters the content of the array while this
variable is not pass by reference (True or not ??).
I have just upgraded t
3 matches
Mail list logo