note 84107 added to function.array-push
| From: | ArizJacinto at osu1 dot php dot net | Date: | Fri, 27 Jun 2008 23:41:00 +0000 |
| Subject: | note 84107 added to function.array-push | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140889@lists.php.net to get a copy of this message | ||
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);
----
Server IP: 64.71.164.2
Probable Submitter: 207.178.4.6
----
Manual Page -- http://www.php.net/manual/en/function.array-push.php
Edit -- https://master.php.net/note/edit/84107
Del: integrated -- https://master.php.net/note/delete/84107/integrated
Del: useless -- https://master.php.net/note/delete/84107/useless
Del: bad code -- https://master.php.net/note/delete/84107/bad+code
Del: spam -- https://master.php.net/note/delete/84107/spam
Del: non-english -- https://master.php.net/note/delete/84107/non-english
Del: in docs -- https://master.php.net/note/delete/84107/in+docs
Del: other reasons-- https://master.php.net/note/delete/84107
Reject -- https://master.php.net/note/reject/84107
Search -- https://master.php.net/manage/user-notes.php