?php foreach (glob("*.txt") as $filename) {echo "$filename size ". filesize($filename). "\n";} / * Output will look something like: funclist.txt size 44686 funcsummary.txt size 267625 quickref.txt size 137820 * /?
GLOB_BRACE - Expands {a,b,c} to match 'a', 'b', or 'c'