string path, 
    string filter (optional), 
    bool listDirectories (optional; default=FALSE), 
    bool absolutePaths (optional; default=FALSE),
    bool recursive (optional; default=FALSE)
  ) : vector

Returns array (See XPathOnUrl) with files, directory names or absolute paths.

Tip: Dump is a very useful function for working with functions that returns arrays.


Return an array of absolute paths of all XML files in folder "c:\foo" and it's subfolders.


Get help with this function in the community →