xref: /PHP-5.4/ext/spl/examples/tests/examples.inc (revision 1b9e0de2)
1<?php
2
3class IncludeFiles extends ArrayIterator
4{
5	function __construct($path, $classes)
6	{
7		parent::__construct();
8		foreach($classes as $c)
9		{
10			$this->append($path . '/' . strtolower($c) . '.inc');
11		}
12	}
13}
14
15$classes = array(
16);
17
18foreach (new IncludeFiles(dirname(__FILE__). '/..', $classes) as $file)
19{
20	require_once($file);
21}
22
23?>