ID:               43414
 Updated by:       [EMAIL PROTECTED]
 Reported By:      cappytoi at yahoo dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Arrays related
 Operating System: Windows Xp
 PHP Version:      5.2.5
 New Comment:

I tried with CLI:
# src/build/php_5_2/sapi/cli/php t.php
lang[]=turkce&lang[]=english&lang[]=german

And no problems there. In what browser does it give you that? Have you
got some weird locale set on your machine or what?


Previous Comments:
------------------------------------------------------------------------

[2007-11-26 17:28:20] cappytoi at yahoo dot com

also found that using "times" instead of "lang" causes a similar
result.

------------------------------------------------------------------------

[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&#9001;[]=english&#9001;[]=german


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=43414&edit=1

Reply via email to