note 110458 added to function.array-flip

From: Date: Wed, 24 Oct 2012 08:11:15 +0000
Subject: note 110458 added to function.array-flip
Groups: php.notes 
Request: Send a blank email to php-notes+get-191515@lists.php.net to get a copy of this message
Here is my array flip function for multidimensional arrays. Its more simple and light <?php /* * Array Flip Function For Multidimensional Arrays * Mahmut GÜLERCE mahmutta[at]gmail.com */ function array_flip_recursive($array) { $return=array(); foreach ($array as $k=>$v) { if(is_array($v)) $return[''.$v] = array_flip_recursive($v); else $return[''.$v] = $k ; } return $return; } ?> ---- Server IP: 69.147.83.199 Probable Submitter: 95.10.143.135 ---- Manual Page -- http://www.php.net/manual/en/function.array-flip.php Edit -- https://master.php.net/note/edit/110458 Del: integrated -- https://master.php.net/note/delete/110458/integrated Del: useless -- https://master.php.net/note/delete/110458/useless Del: bad code -- https://master.php.net/note/delete/110458/bad+code Del: spam -- https://master.php.net/note/delete/110458/spam Del: non-english -- https://master.php.net/note/delete/110458/non-english Del: in docs -- https://master.php.net/note/delete/110458/in+docs Del: other reasons-- https://master.php.net/note/delete/110458 Reject -- https://master.php.net/note/reject/110458 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#191515) next »