Re: [PHP4BETA] bug in implode function ?????
| From: | thies at digicol dot de | Date: | Fri, 12 May 2000 19:33:57 +0000 |
| Subject: | Re: [PHP4BETA] bug in implode function ????? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-14946@lists.php.net to get a copy of this message | ||
On Fri, May 12, 2000 at 04:44:32PM +0200, André Langhorst wrote:
> Watch these variables. I dumped them with serialize(). They´re almost
> identical (the most important part are).I ran implode(',',$var) on them...
>
> array1 a:3:{i:1;i:0;i:2;i:2;i:3;s:5:"ASSOC";}
> array2 a:3:{i:1;i:0;i:4;i:1;i:5;s:3:"Sdf";}
>
> string1 ,2,ASSOC
> string2 0,1,Sdf
>
> there is the leading zero???
please send the shortes possible code snippet that shows your
problem to the list.
> the only difference is, that i created the first array witch
> func_get_args() and dropped the first element using unset($array1[0]),
> the second array was created usins $array2=array(1=>0,4=>1,5=>'Sdf');
>
> I´m confused or doesn´t serialize gives a proper picture on how a
> variable is presented in memory? but even if yes, that does not explain
> why the leading zero is missing in string1
>
> andré
>
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net
--
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany