note 99718 added to function.array-flip
| From: | jake at jmc-creative dot com | Date: | Wed, 01 Sep 2010 14:28:53 +0000 |
| Subject: | note 99718 added to function.array-flip | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-172231@lists.php.net to get a copy of this message | ||
// Quickly delete a value from an array, but don't know the key:
$aRR = array('me' => 'boy', 'you' => 'girl');
$flip = array_flip($aRR);
unset($flip['boy']);
$aRR = array_flip($flip);
----
Server IP: 64.71.164.2
Probable Submitter: 66.252.41.178
----
Manual Page -- http://www.php.net/manual/en/function.array-flip.php
Edit -- https://master.php.net/note/edit/99718
Del: integrated -- https://master.php.net/note/delete/99718/integrated
Del: useless -- https://master.php.net/note/delete/99718/useless
Del: bad code -- https://master.php.net/note/delete/99718/bad+code
Del: spam -- https://master.php.net/note/delete/99718/spam
Del: non-english -- https://master.php.net/note/delete/99718/non-english
Del: in docs -- https://master.php.net/note/delete/99718/in+docs
Del: other reasons-- https://master.php.net/note/delete/99718
Reject -- https://master.php.net/note/reject/99718
Search -- https://master.php.net/manage/user-notes.php