Learning PHP and MySQL
Example 05-10 Creating an object from the Cat class
<?php
class Cat {
}
$fluffy = new Cat();
echo "Fluffy is a new ".gettype($fluffy)."!";
?>
Posted by on 08/03 at 08:21 AM
Next entry: Example 05-11 Creating the Cat constructor
Previous entry: Example 05-08 Using the include function