index.php 250 B

12345678910111213
  1. <?php
  2. ini_set('error_reporting', E_ALL);
  3. ini_set('display_errors', 1);
  4. ini_set('display_startup_errors', 1);
  5. include_once 'Dog.php';
  6. $spot = new Dog("Spot", "Ruff!");
  7. $scruffy = new Dog("Scruffy", "Wurf!");
  8. $spot->dogSays();
  9. $scruffy->dogSays();