+ 1

1.Why the output of the following programme is 11 ?

<?php echo strlen("Hello coder"); echo "<br/>"; ?>

27th Jul 2017, 3:14 PM
Md. Jahid Hasan
Md. Jahid Hasan - avatar
3 Answers
+ 17
H e l l o *space* c o d e r //11
27th Jul 2017, 3:19 PM
Frost
Frost - avatar
+ 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
27th Jul 2017, 3:23 PM
Matte
Matte - avatar
+ 1
the "space" also it is a value to count
27th Jul 2017, 3:41 PM
Amjad
Amjad - avatar