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

Functions, Part I Forum

View Course » View Exercise

251 points
Picture
Submitted by
Magayane
over 3 years ago

Oops, it looks like you didn't print anything!

Why isn't this code working? I keep getting an error: Oops, it looks like you didn't print anything!

<?php
// get the length of a string and
// print it to the screen
$length = strlen("Magayane");
print $length;
?>


0 votes

permalink

Never Mind. I added HTML tags and that solved the problem. Here is my working code:

<?php
// Get the length of your own name
// and print it to the screen!

$length = strlen("Magayane");
print $length;

?>

251 points
Picture
Submitted by
Magayane
over 3 years ago


0 votes

permalink

yeahs b0ss

69 points
559a78e0e39efe0e9b00052e_115802759
Submitted by
Cameron Polden
over 2 years ago


-2 votes

permalink

your code is OK, Greetings from South America

365 points
543fc82f631fe988640020d7_382532424
Submitted by
Tobias Páez
about 3 years ago