Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 399 Bytes

0542.md

File metadata and controls

24 lines (20 loc) · 399 Bytes

What is the output of the following code?

function oranges(&$oranges = 17) {
    $oranges .= 1;
}
$apples = 5;
oranges($apples);
echo $apples++;
  • A) 51
  • B) 52
  • C) 171
  • D) 170
Answer

Answer: A