note 84107 deleted from function.array-push by levim
| From: | levim@php.net | Date: | Sun, 09 Dec 2012 21:52:25 +0000 |
| Subject: | note 84107 deleted from function.array-push by levim | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-192432@lists.php.net to get a copy of this message | ||
Note Submitter: Ariz Jacinto
----
if you're going to use array_push() to insert a "$key" => "$value" pair
into an array, it can be done using the following example:
array_push($data[$key], $value);
...
array_push($data[$key], $value);