glob($string);

Return an array of pathnames matching a specific pattern.

// Find all CSV files in the /home/var/imports/ directory 
glob("/home/var/imports/hello-*.csv");
  • /home/var/imports/hello-world.csv – Returned
  • /home/var/imports/hell-world.csv – Not returned
  • /home/var/imports/hello-.csv – Returned.

Hello, I'm Keith, a website developer in Belfast, Northern Ireland working with PHP, Magento, Shopify, WordPress along with everything that involves getting websites online

keithgreer.uk · Blog Posts
 page.title

Warning: Your browser is very out-of-date. You should upgrade to a better browser.