Answers for "php get all img of a folder"

PHP
3

Extract images from a folder in php

<?php
function rasmname(){
 $dirname = "./";
 $images = glob($dirname."*.jpg");
foreach($images as $image) {
 echo '<img src="'.$image.'" /><br />';
  }
}
rasmname();
Posted by: Guest on August-08-2020
0

php xpath get all image

$xpath->query("//img")
Posted by: Guest on February-01-2021

Code answers related to "php get all img of a folder"

Browse Popular Code Answers by Language