note 9465 added to array_push
| From: | howardh at telus dot net | Date: | Sun, 05 Nov 2000 02:48:49 +0000 |
| Subject: | note 9465 added to array_push | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7385@lists.php.net to get a copy of this message | ||
array_push in PHP 4.0.3pl1 does not properly push array values onto another array. Instead of
appending all of the array values onto the first array, the entire second array is added under a
single new key entry.
Eg: array_push($array1,$array2)
is the same as doing $array1["newkey"] = $array2
http://www.php.net/manual/function.array-push.php