php-src/ext/spl/examples/tests/examples.inc
2004-04-28 21:52:51 +00:00

27 lines
416 B
PHP
Executable File

<?php
class IncludeFiles extends ArrayIterator
{
function __construct($path, $classes)
{
parent::__construct();
foreach($classes as $c)
{
$this->append($path . '/' . strtolower($c) . '.inc');
}
}
}
$classes = array(
'EmptyIterator',
'InfiniteIterator',
'AppendIterator',
'NoRewindIterator',
);
foreach (new IncludeFiles(dirname(__FILE__). '/..', $classes) as $file)
{
require_once($file);
}
?>