1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 08:42:29 +01:00
Files
archived-php-src/ext/spl/examples/tests/examples.inc
Marcus Boerger b9470609ad - Minor fixes
- Implement AppendIterator in C
2004-11-01 00:26:59 +00:00

23 lines
337 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(
);
foreach (new IncludeFiles(dirname(__FILE__). '/..', $classes) as $file)
{
require_once($file);
}
?>