PHP - String Functions
What will be the output of the following PHP code?
$str = "Hello World!";
echo strlen($str);
$str = "Hello World!";
echo strlen($str);
strlen($str) returns 12 because it counts every character.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions