Q. What will be the output?
Code:$str = "Hello"; echo strlen($str);
β
Correct Answer: (B)
5
Explanation: strlen() returns length of string 'Hello' = 5.
$str = "Hello"; echo strlen($str);