PHP Classes

File: helper/dirList.php

Recommend this page to a friend!
  Classes of Alexey Starikov   PHP Helper Class   helper/dirList.php   Download  
File: helper/dirList.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Helper Class
Call helper functions that are loaded dynamically
Author: By
Last change:
Date: 5 years ago
Size: 217 bytes
 

Contents

Class file image Download
<?php
return function ($dir) {
   
$ret = array();
   
$it = new FilesystemIterator($dir);
    foreach (
$it as $fileinfo) {
       
$ret[$fileinfo->getFilename()] = $fileinfo->getFilename();
    }
    return
$ret;
}
?>