note 46515 added to function.implode
| From: | sfish at NO_SPAMhej dot nu | Date: | Wed, 13 Oct 2004 20:19:58 +0000 |
| Subject: | note 46515 added to function.implode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78514@lists.php.net to get a copy of this message | ||
$a[0] = '0';
$a[2] = '2';
$a[1] = '1';
echo implode($a); // This will print out 021
The conclusion is that it's not the index that decide how implode work but the order of element
declarations. Thought somebody might want to know, even though I still hope this is a bug...
(PHP Version 5.0.2)
----
Manual Page -- http://www.php.net/manual/en/function.implode.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46515
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46515&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46515&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46515&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46515&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46515&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46515&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46515&report=yes
Search -- http://master.php.net/manage/user-notes.php