Good day.
Tell me how I can find out the file names in the folder of only a certain extension, for example, .php, .txt.
I $files = scandir("application/");
files $files = scandir("application/");
but there are a lot of them here.
It is necessary to show files here only with a certain extension. How to do it?
Thank.