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
Post a Comment