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?
how to get the list of all (.xls) files in a folder
Moderator: General Moderators
Re: how to get the list of all (.xls) files in a folder
Use glob()
There are 10 types of people in this world, those who understand binary and those who don't