<?php chdir('/tmp'); touch('test1.php'); touch('test2.php'); touch('test3.php'); $it = new GlobIterator("./*.php"); foreach ($it as $p) echo $p->getFilename() . " " . ($p->isFile() ? "IS" : "IS NOT") . " a file\n"; $it = new GlobIterator("*.php"); foreach ($it as $p) echo $p->getFilename() . " " . ($p->isFile() ? "IS" : "IS NOT") . " a file\n";
You have javascript disabled. You will not be able to edit any code.