Story details

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:

Submit a Comment

Log in to comment or register here

Display Activity Notice