<html>
<! BasicObject1.php                                           >
<! Chapter 8, Oracle Database XE PHP Web Programming          >
<! by Michael McLaughlin                                      >
<!                                                            >
<! This script declares and instantiate a class with the      >
<! default __construct() function.                            >
<head>
<title>
  Chapter 8 : BasicObject1.php
</title>
</head>
<body>
<?php
  // Declare a variable to hold an object instance.
  $myObject = new BasicObject();

  // Print an instance variable.
  print "[\$myObject->name] is: [".$myObject->name."]<br>";

  // Define a class that prints a message.
  class BasicObject
  {
    // Declare public instance variable.
    public $name = "BasicObject";
  }
?>
</body>
</html>
