PHP 4.0 Bug #2460 Updated: Broken array_push? Or seriously misbehaving multidimensional arrays???
| From: | Bug Database | Date: | Thu, 07 Oct 1999 04:24:07 +0000 |
| Subject: | PHP 4.0 Bug #2460 Updated: Broken array_push? Or seriously misbehaving multidimensional arrays??? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11595@lists.php.net to get a copy of this message | ||
ID: 2460
Updated by: andrei
Reported By: trevorl@discovermusic.com
Status: Closed
Bug Type: Other
Assigned To:
Comments:
You should be doing:
$dbs["dbthree"] = array("tableone" =>
array("col1", "col2", "col3","col4"),
array("col1", "col2",
"col3","col4")));
Another way of doing it is:
$dbs = array_merge($dbs, $newdb);
And array_push() returns the new number of elements int the array,
not the number of pushed elements.
Full Bug description available at: http://bugs.php.net/version4/?id=2460