Select a random file from directory. This can be useful if you want to display a random image on your website. For an example a background image randomly from a directory in your files.
Source code viewer
echo $files[$file];Programming Language: PHP