Functions Part I


#1

https://www.codecademy.com/courses/web-beginner-en-7I7Xm/0/2?curriculum_id=5124ef4c78d510dd89003eb8#

Oops, try again. Did you remember to print your substring?
Parse error: syntax error, unexpected T_STRING on line 34

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


$lowercase = strtolower($uppercase);
print $lowercase;


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

$lowercase = strtolower($uppercase);
print $lowercase;


    ?>
  </p>
</html>

I just don't understand what I did wrong.
Can u guys please help me I've been stuck for days.!!!!!!!!


#2

In this line of code:

$uppercase = strtoupper("brianna);

You have to close the string with the ".


And you have to add a semicolon at the end of this statement:

print "substring"

#3

thank you i see it now


#4

You're very welcome :slight_smile:


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.