00001 <?php 00002 /***** Copyright 2012 Simon Dales 00003 ** 00004 ** This work may be distributed and/or modified under the 00005 ** conditions of the LaTeX Project Public License, either version 1.3 00006 ** of this license or (at your option) any later version. 00007 ** The latest version of this license is in 00008 ** http://www.latex-project.org/lppl.txt 00009 ** 00010 ** This work has the LPPL maintenance status `maintained'. 00011 ** 00012 ** The Current Maintainer of this work is Simon Dales. 00013 */ 00014 00029 require_once('animals.php'); 00030 00031 // main 00032 $animals = array( 00033 new Cat 00034 ,new Dog 00035 ,new Bird 00036 ,new RedKite 00037 ,new Pigeon 00038 ); 00039 00040 foreach ( $animals as $v) 00041 $v->call(); 00042 00043 //eof 00044 ?>