Bug #10551: array_switch ( permute the keys w/ values)

From: Date: Sun, 29 Apr 2001 12:38:06 +0000
Subject: Bug #10551: array_switch ( permute the keys w/ values)
Groups: php.dev 
Request: Send a blank email to php-dev+get-52893@lists.php.net to get a copy of this message
From: teo@gecadsoftware.com Operating system: PHP version: 4.0 Latest CVS (29/04/2001) PHP Bug Type: Feature/Change Request Bug description: array_switch ( permute the keys w/ values) 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 -- Edit Bug report at: http://bugs.php.net/?id=10551&edit=1

« previous php.dev (#52893) next »