1.

Which one of the following PHP functions can be used to find files?(a) glob()(b) file()(c) fold()(d) get_file()The question was asked in an international level competition.My doubt is from In-Built Functions in PHP topic in division Arrays and Functions of PHP

Answer»

Correct answer is (a) glob()

Explanation: The FUNCTION glob() RETURNS an ARRAY of filenames or directories which matches a specified pattern. The function returns an array of files/directories, or it will RETURN FALSE on failure. Here is an example-



Discussion

No Comment Found

Related InterviewSolutions