Returns an array of files and directories from the
directory. If directory
is not a directory, then boolean FALSE is returned, and an error of
level E_WARNING is generated.
By default, the sorted order is alphabetical in ascending order. If
the optional sorting_order is used (set to 1),
then sort order is alphabetical in descending order.
Tip: You can use a URL as a
filename with this function if the fopen wrappers have been enabled.
See fopen() for more details on how to specify
the filename and Appendix L for a list of supported
URL protocols.
scandir php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php scandir syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.