PHP 4.0 Bug #9319: join function joins in reverse order in one specific instance.
| From: | nick at neikos dot com | Date: | Sat, 17 Feb 2001 17:02:51 +0000 |
| Subject: | PHP 4.0 Bug #9319: join function joins in reverse order in one specific instance. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-46791@lists.php.net to get a copy of this message | ||
From: nick@neikos.com
Operating system: Linux kernel 2.4.0
PHP version: 4.0.4
PHP Bug Type: Arrays related
Bug description: join function joins in reverse order in one specific instance.
$arr1 = array("dog","cat","bird","fish");
echo join(" = ",$arr1);
echo "<br>";
$arr2[0] = "dog";
$arr2[1] = "cat";
$arr2[2] = "bird";
$arr2[3] = "fish";
echo join(" = ",$arr2);
echo "<br>";
list($arr3[0],$arr3[1],$arr3[2],$arr3[3]) =
array("dog","cat","bird","fish");
echo join(" = ",$arr3);
// This last join will join in the reverse order.
--
Edit Bug report at: http://bugs.php.net/?id=9319&edit=1