note 18993 deleted from function.array-push by didou
| From: | didou@php.net | Date: | Tue, 29 Jul 2003 11:59:12 +0000 |
| Subject: | note 18993 deleted from function.array-push by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-52914@lists.php.net to get a copy of this message | ||
Note Submitter:
----
Anonymous said:
array_push($myarray,array("mykey"=>"myvalue"));
This will not return a syntax error.
But this is totally incorrect. It's equivalent to:
$myarray[count($myarray)] = array("mykey"=>"myvalue"));