glob

PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8
glob - Find pathnames matching a pattern
Manual
Code Examples

Example #1 Convenient way how glob can replace opendir and friends.

Result: funclist.txt size 44686 funcsummary.txt size 267625 quickref.txt size 137820
PHP Version: