PHP Sucks on the file_exist() Function

I wonder why Father Rasmus Lerdorf(Cap Off) and team Zend would make file_exist() to check for both if dir or file exist without even passwing a second argument to force it to check for files only and return false once file does not exist..
I expect there should be file_exist() and dir_exist()

The alternative is_file() function is for a diff scenerio, dont wanna talk about that..


If you think i dont use the doc.... you can name the function that can do the ish please...


Comments

Popular posts from this blog

Material Design Color Palette for Corel Draw

Reading BootStrap 3.3.4 Documentation - Tutorial Offline

Advantages of Friendly URL Rewriting