MCQs > IT & Programming > PHP 5 > Output of the following code : 'lemon', 'a'=>'orange', 'b'=>'banana', 'c'=>'apple'); ksort($fruits); foreach ($fruits as $key => $val) { echo '$key = $val\n'; } ?>

PHP 5 MCQs

What will the following code output: "lemon", "a"=>"orange", "b"=>"banana", "c"=>"apple"); ksort($fruits); foreach ($fruits as $key => $val) { echo "$key = $val\n"; } ?>

Answer

Correct Answer: a = orange b = banana c = apple d = lemon

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