<?php function returnimages($dirname=".") { $pattern="(.jpg$)|(.png$)|(.jpeg$)|(.gif$)"; //valid image extensions $curimage=0; //Output it as a JavaScript array element $curimage++; } } } return($files); } returnimages() //Output the array elements containing the image file names ?>
i chcialbym zeby nie byly wczytywane wszystkie pliki graficzne ale tylko takie ktore maja w nazwie min_