Create a List of files within a certain directory

This function will list files and directories within a specified directory E.g. if a directory named web contains some files like index.htm, contactus.htm and some folders like images, documents, products The script will return index.htm contactus.htm images documents products [crayon-5905de013350b507087567/] $sortflag can be any of below SORT_REGULAR – compare items normally (don’t change types) SORT_NUMERIC […]
Read More