note 18617 deleted from function.array-push by erica
| From: | erica@php.net | Date: | Tue, 10 Sep 2002 04:43:50 +0000 |
| Subject: | note 18617 deleted from function.array-push by erica | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-36415@lists.php.net to get a copy of this message | ||
array_push() doesn't seem to allow you to push a key=>value pair onto the array.
i.e.:
$myarray = array ();
:
array_push($myarray,"mykey"=>"myvalue");
produces a parsing error.