Find pathnames matching pattern
The glob: stream wrapper is available since PHP 5.3.0.
Examples:
Basic usage
1 2 3 4 5 6 7 8 | <?php // Loop over all *.php files in ext/spl/examples/ directory // and print the filename and its size foreach ( $it as $f ) { printf( "%s: %.1FK\n" , $f ->getFilename(), $f ->getSize()/1024); } ?> |
tree.php: 1.0K findregex.php: 0.6K findfile.php: 0.7K dba_dump.php: 0.9K nocvsdir.php: 1.1K phar_from_dir.php: 1.0K ini_groups.php: 0.9K directorytree.php: 0.9K dba_array.php: 1.1K class_tree.php: 1.8K
Please login to continue.