ID: 43414
User updated by: cappytoi at yahoo dot com
Reported By: cappytoi at yahoo dot com
Status: Open
Bug Type: Arrays related
Operating System: Windows Xp
PHP Version: 5.2.5
New Comment:
also found that using "times" instead of "lang" causes a similar
result.
Previous Comments:
------------------------------------------------------------------------
[2007-11-26 17:12:05] cappytoi at yahoo dot com
Description:
------------
Hi,
I have found the following problem. I try to produce a query string and
I found that using lang as a key makes problem with implode.
Reproduce code:
---------------
<?php
$all = array(
'turkce',
'english',
'german'
);
$t = array();
foreach ($all as $al) {
$t[] = 'lang[]='.$al;
}
echo implode('&',$t);
?>
Expected result:
----------------
lang[]=turkce&lang[]=english&lang[]=german
Actual result:
--------------
lang[]=turkce〈[]=english〈[]=german
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43414&edit=1