1
glob로 "t_"로 시작하는 모든 이미지를 가져와야합니다. 어떤 패턴을 사용해야합니까?디렉토리의 특정 파일을 반복하십시오.
//get any image files that begin with "t_" -- (t_image.jpg) not (image.jpg)
$images = glob("" . $dir . "*.jpg");
foreach($images as $image)
{
echo $image;
}