Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 396 Bytes

0653.md

File metadata and controls

23 lines (19 loc) · 396 Bytes

What is the output of the following code?

function byReference(&$variable = 0){
    echo ++$variable;
}    
byReference();
byReference();
  • A) 11
  • B) an error
  • C) 01
  • D) 12
Answer

Answer: A