PHP recursive traversal of multidimensional arrays, PHP recursive multidimensional array
In this paper, we explain how PHP recursively iterates through multidimensional arrays. Share to everyone for your reference. Specific as follows:
<?phpfunction Get_array_elems ($arrResult, $where = "Array") {while (list ($key, $value) =each ($arrResult)) { if ( Is_array ($value)) { get_array_elems ($value, $where. " [$key] "); } else {for ($i =0; $i
\ n "; } } }} get_array_elems ($arrResult);? >
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/986074.html www.bkjia.com true http://www.bkjia.com/PHPjc/986074.html techarticle PHP recursively iterates through multidimensional arrays, and PHP recursively iterates over multidimensional arrays in this case, the method of recursive traversal of a multidimensional array by PHP is described. Share to everyone for your reference. Specific as follows: Phpfunctio ...