note 71323 added to function.array-push

From: Date: Wed, 22 Nov 2006 16:54:33 +0000
Subject: note 71323 added to function.array-push
Groups: php.notes 
Request: Send a blank email to php-notes+get-119980@lists.php.net to get a copy of this message
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 ---- Server IP: 83.138.144.80 Probable Submitter: 80.68.45.210 ---- Manual Page -- http://www.php.net/manual/en/function.array-push.php Edit -- https://master.php.net/note/edit/71323 Del: integrated -- https://master.php.net/note/delete/71323/integrated Del: useless -- https://master.php.net/note/delete/71323/useless Del: bad code -- https://master.php.net/note/delete/71323/bad+code Del: spam -- https://master.php.net/note/delete/71323/spam Del: non-english -- https://master.php.net/note/delete/71323/non-english Del: in docs -- https://master.php.net/note/delete/71323/in+docs Del: other reasons-- https://master.php.net/note/delete/71323 Reject -- https://master.php.net/note/reject/71323 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119980) next »