Answers for "find all jpg and png and pass to different funciton"

PHP
1

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

Browse Popular Code Answers by Language