Using glob() to Find Files Matching a Pattern in PHP


Find all PHP files in a directory using glob().

Source Code

foreach (glob("*.php") as $file) {
    echo $file . "n";
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments