scandir – PHP Function
I discovered a new function in PHP this week – “scandir”. It is going to save a load of time dealing with filing systems – it’s the difference between fopen/fread/fclose and file_get_contents but for directories. The function is pretty simple really – it takes a single parameter, the name of a directory and returns all [...]


