<<< Previous question <<< Question ID#0417.md >>> Next question >>>
What is the output of the following script?
$str = 'abcd';
echo substr($str, 0, 1);
echo substr($str, 0, -1);
echo substr($str, 3, 1);
echo substr($str, 3);
echo substr($str, -3);
Enter the exact script output
- A) aabcddbcd
- B) abc
- C) dec
- D) a
Answer
Answer: A