Kota Jembal :: Nota Symfony & PHP & Pembeda.com
Pages
Home
About
Tajuk
Error
Best symfony link
CLI
Tuesday, August 20, 2013
File System Fuction
use Symfony\Component\Finder\Finder;
$finder = new Finder();
$iterator = $finder
->files()
->name('*.php')
->depth(0)
->size('>= 1K')
->in(__DIR__);
foreach ($iterator as $file) {
print $file->getRealpath()."\n";
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment