Answers for "php foreach multidimensional array recursive"

PHP
0

php foreach multidimensional array recursive

function process($array) {
    foreach ($array as $key=>$value) {
        // Process the content of the array
    }
    if (isset($array[8])) // If we have linked arrays
        foreach($array[8] as $subArray)
            process($subArray);
}
Posted by: Guest on April-23-2022

Code answers related to "php foreach multidimensional array recursive"

Browse Popular Code Answers by Language