What will be printed after executing following code?
<?php
   $str = "\n\t\x44";
   echo strlen('$str');
?>
Explanation
We are passing the string '$ str' to function, not the value of $str, because we used single qoutes.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
PHP quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes