Posted By

troynt on 02/11/09


Tagged

glob


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

atma
xtheonex
dsntos
vali29
BrianCoyDesign


Get All Images in Directory


 / Published in: PHP
 

  1. foreach(glob($asset_path.'*.{jpg,jpeg,png,gif}',GLOB_BRACE) as $img)
  2. {
  3.  
  4. }

Report this snippet  

You need to login to post a comment.