Page 1 of 1

how to get the list of all (.xls) files in a folder

Posted: Tue Nov 18, 2008 5:26 am
by susrisha
I am using the function scandir to get the list of all the files in a folder.

My problem is to get only the files which are excel format.
is there any function that returns the array of file names of given extension in a directory?

Re: how to get the list of all (.xls) files in a folder

Posted: Tue Nov 18, 2008 5:38 am
by VladSun
Use glob()