<<< Previous question <<< Question ID#0456.md >>> Next question >>>
What is the output of this code:
function c($a, $b = 1, $c) {
return array($c, $a, $b);
}
list($a, $b, $c) = c(0,0,0);
echo $b;
- A) 0
- B) 1
- C) 2
- D) null
Answer
Answer: A
What is the output of this code:
function c($a, $b = 1, $c) {
return array($c, $a, $b);
}
list($a, $b, $c) = c(0,0,0);
echo $b;
Answer: A