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

Functions, Part I Forum

View Course » View Exercise

536 points
Submitted by
Enrico A. Garcia
over 3 years ago

why is this showing up?

This show up when I click on save and submit button:
Oops, try again. Did you remember to use strtolower() in your code?

Here is my code:

$myname = "Enrico";
// Get a partial string from within your own name
// and print it to the screen!
$partial = substr($myname, 0, 6);
print $partial;

// Make your name upper case and print it to the screen:
$uppercase = strtoupper($myname);
print $uppercase;

// Make your name lower case and print it to the screen:
$lowercase = strtolower($uppercase);
print $lowercase;

okay what did I do wrong?
thank you for your help

1 vote


I believe it's because you call $uppercase in your strtolower section. It should work if you use
$lowercase = strtolower($myname);

Ultimately it will give the same output, but when the page verifies your code, it might expect the $myname variable

386 points
Submitted by
over 3 years ago