The PHP glob() function returns an array of filenames or directories matching a specified pattern.

This function returns an array of files or directories or FALSE on failure.

Syntax: 

glob(pattern,flags)

Example:

The output of the code above could be:

 

Leave a Reply

Your email address will not be published. Required fields are marked *