Use PHP to get all images in a folder

This:

$images = glob($directory . "*.{jpg,gif,png}", GLOB_BRACE);

is awesome.

About Scott Allen

Scott Allen is from Indianapolis, Indiana. He has been working with HTML, CSS, PHP, & MySQL since the late 1990s, and has extensive experience in database design and development, server-side scripting, content management, and front-end user experience in both client services and in-house settings. You can connect with Scott on Twitter or via email.
This entry was posted in Code, Tech and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *