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

Functions, Part I Forum

View Course » View Exercise

903 points
55d75c2a937676a93000033b_694422267
Submitted by
ike.porter
almost 2 years ago

This is absolutely INSANE! Can someone please give me the answer?

I have tried every single post that says this worked for me but none of them work! Can someone just give me the answer? I have to get this done by tomorrow at 11:59 pm. Thanks!
Here is my code:
<?php
// Get a partial string from within your own name
// and print it to the screen!
$myname ="Isaac";
$partial =substr($myname, 0, 2);
print $partial
?>

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

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


0 votes

permalink

<?php
//Get a partial string from within your own name
// and print it to the screen!
$Name = "Jonathan Chase ";
$partial = substr($Name, 9, 14);
print $partial;
?>


<?php
// Make your name upper case and print it to the screen:
print strtoupper("Jonathan Chase");

?>

<?php
// Make your name lower case and print it to the screen:
print strtolower("Jonathan Chase");
?>

578 points
23abb819a1ae42f8db5b40929b2fab42?s=140&d=retro
Submitted by
Jonathan Chase
almost 2 years ago


0 votes

permalink

Your missing a semicolon my friend right after your first print command

578 points
23abb819a1ae42f8db5b40929b2fab42?s=140&d=retro
Submitted by
Jonathan Chase
almost 2 years ago