MCQs > IT & Programming > PHP 5 > $sweet = array('1' => 'apple', '2' => 'banana'); $fruits = array('delicious' => $sweet, 'sweet' => 'strawberry'); function myprint($item, $key) { echo '$key is $item\n'; } array_walk_recursive($fruits, 'myprint'); In above code, what is the output?

PHP 5 MCQs

$sweet = array('1' => 'apple', '2' => 'banana'); $fruits = array('delicious' => $sweet, 'sweet' => 'strawberry'); function myprint($item, $key) { echo '$key is $item\n'; } array_walk_recursive($fruits, 'myprint'); In above code, what is the output?

Answer

Correct Answer: [1 is apple] [2 is banana] [sweet is strawberry]

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