Q. What will be the output?
Code:
echo strpos("hello", "e");
β
Correct Answer: (B)
1
Explanation: Position of 'e' is index 1.
echo strpos("hello", "e");
Explanation: Position of 'e' is index 1.