Sample Code (PHP): main.php Source File

Sample Code (PHP) 0.1 20120518

- Main Page
- Classes
- Files

- File List
- File Members

main.php
Go to the documentation of this file.
1 <?php
2 /***** Copyright 2012 Simon Dales
3 **
4 ** This work may be distributed and/or modified under the
5 ** conditions of the LaTeX Project Public License, either version 1.3
6 ** of this license or (at your option) any later version.
7 ** The latest version of this license is in
8 ** http://www.latex-project.org/lppl.txt
9 **
10 ** This work has the LPPL maintenance status `maintained'.
11 **
12 ** The Current Maintainer of this work is Simon Dales.
13 */
14
29 require_once('animals.php');
30
31 // main
32 $animals = array(
33 new Cat
34 ,new Dog
35 ,new Bird
36 ,new RedKite
37 ,new Pigeon
38 );
39
40 foreach ( $animals as $v)
41 $v->call();
42
43 //eof
44 ?>