This one time, at band camp, Peter Brodersen <[EMAIL PROTECTED]> wrote:

> >$arr = array('jpg', 'gif', 'tif', 'pdf', 'bmp', 'raw');
> >foreach(glob($arr as $file)){ echo $file; }
> 
> glob is currently extremely flexible in its input with the right flags
> and can expand a list. Eg:
> 
> print_r(glob("*.{jpg,gif,tif,pdf,bmp,raw}",GLOB_BRACE));

True, but not available to all. It is GNU.

Kevin
-- 
"Democracy is two wolves and a lamb voting on what to have for lunch. 
Liberty is a well-armed lamb contesting the vote."

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to