glob()¶
glob() is a function that finds pathnames matching a pattern.
The glob() function is not related to the global keyword.
<?php
foreach (glob("*.txt") as $filename) {
echo "$filename size " . filesize($filename) . "\n";
}
?>
glob() is a function that finds pathnames matching a pattern.
The glob() function is not related to the global keyword.
<?php
foreach (glob("*.txt") as $filename) {
echo "$filename size " . filesize($filename) . "\n";
}
?>