Q. What will be the output?
Code:
$a = 'abc'; echo $a[1];
β
Correct Answer: (B)
b
Explanation: String offset access works like array.
$a = 'abc'; echo $a[1];
Explanation: String offset access works like array.