MCQs > IT & Programming > PHP 5 > You have a 2D array in PHP: $array = array(array(141,151,161), 2, 3, array(101, 202, 303)); You want to display all the values in the array. The correct way is:

PHP 5 MCQs

You have a 2D array in PHP:

$array = array(array(141,151,161), 2, 3, array(101, 202, 303));

You want to display all the values in the array. The correct way is:



Answer

Correct Answer:

function DisplayArray($array) {foreach ($array as $value) {if (is_array($value)) {

}

Explanation:

Note: This Question is unanswered, help us to find answer for this one

PHP 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it