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.
PHP
PHP Quiz
Start Quiz

or Read more about PHP Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback