Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 388 Bytes

0719.md

File metadata and controls

20 lines (16 loc) · 388 Bytes

What is the output of the following snippet ?

$a = strlen(NULL);
echo $a++;
  • A) 0
  • B) 1
  • C) Fatal Error - The strlen function expects a string, NULL given
  • D) null
Answer

Answer: A