Functions, Part ll


strlen() expects exactly 1 parameter, 0 given (line 10)
Oops, try again. It looks like your code didn't output a number!

          echo strlen();


There are two possibilities...

len = strlen('Zauri');
echo len;


echo strlen("Zauri");


This one doesn't work. But second one works. Thanks mtf. :slight_smile:


That was a typo. My apologies. Fixed now and should also work if you wish to try it.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.