PHP + WordPress – get a list of files from a directory

Are there any native WP functions that are able to list files based by extension from a directory?
if not, how do I do this with php?

I want to get the file names of all .css files from a certain folder

Related posts

Leave a Reply

3 comments