1.

Which function do you have to use to check whether the $path you’ve stored exists?(a) path_dir()(b) path()(c) is_dir()(d) path_dir()This question was addressed to me by my college professor while I was bunking the class.This interesting question is from Image Uploading Ability topic in division Objects and Databases in PHP of PHP

Answer»

Right answer is (c) is_dir()

The explanation is: If the path exists, is_dir() RETURNS TRUE; OTHERWISE, it returns FALSE.



Discussion

No Comment Found

Related InterviewSolutions