Quotes help make search much faster. Example: "Practice Makes Perfect"

Thursday, April 25, 2013

Codecademy Sample Solution: String Functions I



<html>
  <p>
    <?php
    // Get a partial string from within your own name
    // and print it to the screen!
    $name = "Anonymous";
    print substr($name,3,3);
    ?>
  </p>
  <p>
    <?php
    // Make your name upper case and print it to the screen:
    print strtoupper($name);
    ?>
  </p>
  <p>
    <?php
    // Make your name lower case and print it to the screen:
    print strtolower($name);
    ?>
  </p>
</html>

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts