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