Functions, Part ll


#1


https://www.codecademy.com/courses/web-beginner-en-RcIEe/0/1?curriculum_id=5124ef4c78d510dd89003eb8#


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

<html>
    <head>
		<title></title>
	</head>
	<body>
      <p>
        <?php
          strlen("Zauri");
          
          echo strlen();
        ?>
      </p>
    </body>
</html>


#2

There are two possibilities...

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

or

echo strlen("Zauri");

#3

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


#4

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


#5

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