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

Saturday, April 27, 2013

Codecademy Sample Solution: Property Panic (1)



<!DOCTYPE html>
<html>
<head>
 <title>Reconstructing the Person Class</title>
      <link type='text/css' rel='stylesheet' href='style.css'/>
</head>
<body>
      <p>
        <!-- Your code here -->
        <?php
            class Person{
                public $isAlive = true;
                public $firstname;
                public $lastname;
                public $age;
            }
            $teacher = new Person();
            echo "$teacher->isAlive";
            $student = new Person();
        ?>
      </p>
    </body>
</html>

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts