There are some times when we need to get entire list of objects (files and directory) in an specific director. In that case We need to loop through that directory to implement our necessary action. Basically I am used to include php helper files to framework. This would require a relatively large snippet of code if we try to use open_dir(); however, with glob(), it’s easier to me. Lets check the below code:
What is Tuts Publication Network?

Tuts Publication Network (TPN) is a platform to Explore, Save & Share unlimited web pages, videos, photos online.