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

Saturday, April 20, 2013

Codecademy Sample Solution: Deleting Array Elements



<html>
  <head>
    <title>Modifying Elements</title>
  </head>
  <body>
    <p>
      <?php
        $languages = array("HTML/CSS",
        "JavaScript", "PHP", "Python", "Ruby");
        // Write the code to remove Python here!
       
        unset($languages[3]);
       
        // Write your code above this line. Don't
        // worry about the code below just yet; we're
        // using it to print the new array out for you!
       
        foreach($languages as $lang) {
          print "<p>$lang</p>";
        }
      ?>
    </p>
  </body>
</html>

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts