Jump to content

Glob function, anyone know it?


Mutley

Recommended Posts

Use glob_brace - direct from the manual - http://ca.php.net/manual/en/function.glob.php

[quote]Here's an example of how to use the GLOB_BRACE flag:

$images = glob("/path/to/images/{*.jpg,*.JPG}", GLOB_BRACE);

It's also worth noting that when using the GLOB_BRACE flag in any version of PHP prior to 4.3.4, PHP will crash if no matches are found.[/quote]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.