note 68890 deleted from function.array-flip by bjori

From: Date: Tue, 10 Oct 2006 12:21:14 +0000
Subject: note 68890 deleted from function.array-flip by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-118340@lists.php.net to get a copy of this message
Note Submitter: dave at dtracorp dot com ---- just a quick note on egingell at sisna dot com's possible structure the function does not actually return a value, it actually sets the incoming array value eg. $arr = new array('a' => 1, 'b' => 2); print_r(array_flip($arr)); will give you Array ( [1] => a [2] => b ) no need for $newArray = array_flip($arr); which would be the preferred usage i believe

« previous php.notes (#118340) next »