Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 399 Bytes

0512.md

File metadata and controls

25 lines (21 loc) · 399 Bytes

What is the output of?

function apple(&$apples = 4) {
    $apples = $apples / 2;
    return $apples;
}
$apples = 10;
apple($apples);
echo $apples;
  • A) 5
  • B) 10
  • C) 2
  • D) null
Answer

Answer: A