<<< Previous question <<< Question ID#0468.md >>> Next question >>>
What is the output of the following code?
function format(&$item) {
$item = strtoupper($item) . '.';
return $item;
}
$shopping = array("fish", "bread", "eggs", "jelly", "apples");
array_walk($shopping, "format");
$shopping = sort($shopping);
echo $shopping[1];
- A) nothing (no output)
- B) "APPLES."
- C) "apples"
- D) "BREAD."
Answer
Answer: A