Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 485 Bytes

0417.md

File metadata and controls

25 lines (21 loc) · 485 Bytes

What is the output of the following script?

$str = 'abcd';
echo substr($str01);
echo substr($str0, -1);
echo substr($str31);
echo substr($str3);
echo substr($str, -3);

Enter the exact script output

  • A) aabcddbcd
  • B) abc
  • C) dec
  • D) a
Answer

Answer: A