Bug #10551 Updated: array_switch ( permute the keys w/ values)
| From: | cynic@php.net | Date: | Mon, 30 Apr 2001 08:32:24 +0000 |
| Subject: | Bug #10551 Updated: array_switch ( permute the keys w/ values) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-53038@lists.php.net to get a copy of this message | ||
ID: 10551
Updated by: cynic
Reported By: teo@gecadsoftware.com
Old-Status: Open
Status: Bogus
Bug Type: Feature/Change Request
PHP Version: 4.0 Latest CVS (29/04/2001)
Assigned To:
Comments:
RTFM: array_flip()
Previous Comments:
---------------------------------------------------------------------------
[2001-04-29 08:38:06] teo@gecadsoftware.com
I found myself with an array like
$a = array (0 => "Foo", 1 => "Bar" );
and thought it would be cool to be able to say
$a = array_permute/switch ($a);
a being now: array ("Foo" => 0 , "Bar"=>1);
the value colision can use the style of extract() 3rd parameter.
what do you think?
-- teodor
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10551&edit=2