note 89072 deleted from function.glob by danbrown

From: Date: Fri, 20 Feb 2009 15:28:07 +0000
Subject: note 89072 deleted from function.glob by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-150894@lists.php.net to get a copy of this message
Note Submitter: Ben ---- If found out that the 'not' matching charactor [!] is working rather then [^]. For instance, the code below will filter all files containing "tn_" out of the filelist: <?php foreach (glob("$pad/$album/[!tn_]*.jpg") as $bestand) { $fotos[] = ltrim($bestand,"$pad/$album/"); } ?> Am i doing this the right way?

« previous php.notes (#150894) next »