+ 1
1.Why the output of the following programme is 11 ?
<?php echo strlen("Hello coder"); echo "<br/>"; ?>
3 Answers
+ 17
H e l l o *space* c o d e r //11
+ 1
strlen returns the length of the string inside the argument, as Frost has written, if you count the characters inside "Hello coder" (remember to count also the SPACE) they are exactly 11
+ 1
the "space" also it is a value to count