Get All Images in Directory


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. foreach(glob($asset_path.'*.{jpg,jpeg,png,gif}',GLOB_BRACE) as $img)
  2. {
  3.  
  4. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.