Using PHP, how can I find all .php files in a folder or its subfolders (of any depth)?
This is similar to another answer here, but removes SKIP_DOTS as its not needed, and and works with strict_types:
SKIP_DOTS
strict_types
getExtension() == 'php') { echo $o_info->getPathname(), "\n"; } }
https://php.net/splfileinfo.getextension