php-src/ext/spl/examples/tests/examples.inc

23 lines
337 B
PHP
Raw Normal View History

2004-04-28 20:10:21 +00:00
<?php
class IncludeFiles extends ArrayIterator
{
function __construct($path, $classes)
{
parent::__construct();
foreach($classes as $c)
{
$this->append($path . '/' . strtolower($c) . '.inc');
}
}
}
$classes = array(
);
foreach (new IncludeFiles(dirname(__FILE__). '/..', $classes) as $file)
{
require_once($file);
}
?>