I need to get all images that begin with \"t_\" using glob. What pattern should I use to do this?
//get any image files that begin with \"t_\" -- (t_imag
foreach (glob("t_*.jpg") as $filename) { echo "$filename size " . filesize($filename) . "\n"; }
This implies:
foreach (glob("$dir/t_*.jpg") as $filename) { echo "$filename size " . filesize($filename) . "\n"; }
See also:
http://ca2.php.net/manual/en/function.glob.php