From:             [EMAIL PROTECTED]
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



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to