我正在尝试考虑在PHP中实现不区分大小写的file_exists函数的最快方法.我最好的方法是枚举目录中的文件,然后执行strtolower()到strtolower()比较,直到找到匹配项?
php file-io file
file ×1
file-io ×1
php ×1