文章目錄 cyg.php 效果 cyg.php <?php $files = glob('*.{txt}', GLOB_BRACE);//隻顯示目前路徑下*.txt檔案的資訊(隻顯示所有字尾是txt檔案的資訊) print_r($files); 效果