note 71323 deleted from function.array-push by mazzanet
| From: | mazzanet@php.net | Date: | Fri, 24 Nov 2006 07:22:14 +0000 |
| Subject: | note 71323 deleted from function.array-push by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-120045@lists.php.net to get a copy of this message | ||
Note Submitter: Stephan
----
Tried to use array push and at the same time assign a key to the value I push into the array.
Because this wont work I wrote my own function
function array_push_key (&$array, $key, $value) {
$array[$key] = $value;
}
Hope someone can use it