get_filenames($source_dir[, $include_path = FALSE])
Parameters: |
|
---|---|
Returns: |
An array of file names |
Return type: |
array |
Takes a server path as input and returns an array containing the names of all files contained within it. The file path can optionally be added to the file names by setting the second parameter to TRUE.
Example:
$controllers = get_filenames(APPPATH.'controllers/');
Please login to continue.