note 49048 added to ref.array

From: Date: Sat, 15 Jan 2005 11:24:39 +0000
Subject: note 49048 added to ref.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-83317@lists.php.net to get a copy of this message
Dear Anyone, I need recursive function array, that produce array as output that doesn't make multidimensional array, Tks. here is the example: function myfunction(array) { array = myfunction(array); RETURN array } array = array(1,apple,2,banana,3,mangoes,4,berry) output could be array = array[1](name=>apple,key=>1) array = array[2](name=>banana,key=>2) array = array[3](name=>mangoes,key=>3) array = array[4](name=>berry,key=>4) ---- Manual Page -- http://www.php.net/manual/en/ref.array.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49048 Delete -- http://master.php.net/manage/user-notes.php?action=delete+49048&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49048&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+49048&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+49048&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+49048&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+49048&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+49048&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#83317) next »