What do i do here


#1
        Instructions

Let's do a little review. On line 8, use the strlen() function to echo the number of characters in your name.







<?php
$name = "sid";
strlen("ramesh");
echo "$name";
?>



hint : strlen("YOUR NAME");


#2

Hi
for the moment you are echoing the name, not the length of the name. So two possibilities are offered to you. Whether you store the length of the name inside a new variable $leng and then echo this new variable:

$leng = strlen("ramesh");
echo $leng;

or shorter you can also echo directly the output of strlen:

echo strlen("ramesh");

Maybe you wanted to get the length of $name, so you can also write

echo strlen($name);