This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Functions, Part I Forum

View Course » View Exercise

1384 points
083a656dd04ee5b7eee4ae0b3770ce3d?s=140&d=retro
Submitted by
Samuel Gurel
over 2 years ago

Error Message: Did you remember to use strlen() in your code?

$name = strlen("Samuel");
    echo $name;

This is my code. I tried to change the type of quotation marks, I tried both print and echo, but nothing works! Is it me or the website?


-2 votes

permalink

     $name = strlen("Sam");
     echo($name);

    This should work. 

555 points
Aebd8e8f49b1fdbdcb36c602e74e9a14?s=140&d=retro
Submitted by
codekode123
over 2 years ago

2 Comments

083a656dd04ee5b7eee4ae0b3770ce3d?s=140&d=retro Samuel Gurel over 2 years ago

Thanks! This problem was driving me crazy!

083a656dd04ee5b7eee4ae0b3770ce3d?s=140&d=retro Samuel Gurel over 2 years ago

Any idea why Samuel wouldn't work?