Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 400 Bytes

0673.md

File metadata and controls

28 lines (21 loc) · 400 Bytes

What is the output of the following?

function a($number) {
    return (b($number) * $number);
}

function b(&$number) {
    ++$number;
}

echo a(5);
  • A) 0
  • B) 5
  • C) 10
  • D) 12
Answer

Answer: A