arrays - How would I call images from a folder to use in my slideshow using php -


i can't seam find answer specific issue.

i have slideshow already, don't need create one. know need create array , run each loop images in slideshow.

all need know how create array using contents of folder, in case images. can't find clear answer anywhere.

use glob function:

<?php foreach(glob('*.jpg') $image) {     echo $image; // print file name; } 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -