note 36995 added to function.glob

From: Date: Thu, 30 Oct 2003 04:03:50 +0000
Subject: note 36995 added to function.glob
Groups: php.notes 
Request: Send a blank email to php-notes+get-59507@lists.php.net to get a copy of this message
Here's an example of how to use the GLOB_BRACE flag: <?php $images = glob("/path/to/images/{*.gif,*.jpg,*.png}", 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. ---- Manual Page -- http://www.php.net/manual/en/function.glob.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+36995 Delete -- http://master.php.net/manage/user-notes.php?action=delete+36995&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+36995&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#59507) next »