|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-04-30 04:32 UTC] cynic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 23:00:01 2025 UTC |
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