mirror of
https://github.com/php/php-src.git
synced 2024-10-19 23:44:13 +00:00
23 lines
337 B
PHP
23 lines
337 B
PHP
|
<?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);
|
||
|
}
|
||
|
|
||
|
?>
|