mirror of
https://github.com/igorsimdyanov/php8.git
synced 2025-07-25 17:13:08 +00:00
14 lines
257 B
PHP
14 lines
257 B
PHP
<?php
|
|
spl_autoload_register();
|
|
|
|
$limit = new LimitIterator(
|
|
new Iterators\ExtensionFilter(
|
|
new DirectoryIterator('.'), 'php'
|
|
),
|
|
0,
|
|
5);
|
|
|
|
foreach ($limit as $file) {
|
|
echo $file . '<br />';
|
|
}
|