useCritter.php

Source of useCritter.php

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>UseCritter</title>
</head>
<body>
  <?php
  
    require_once("simpleCritter.php");
    $a = new Critter("Jack");

    //referring to a property
    print "Name: $a->name <br />";

    print $a->sayHi();

  ?>
</body>
</html>