note 89072 added to function.glob

From: Date: Fri, 20 Feb 2009 10:57:54 +0000
Subject: note 89072 added to function.glob
Groups: php.notes 
Request: Send a blank email to php-notes+get-150885@lists.php.net to get a copy of this message
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? ---- Server IP: 213.249.64.162 Probable Submitter: 84.24.141.100 ---- Manual Page -- http://www.php.net/manual/en/function.glob.php Edit -- https://master.php.net/note/edit/89072 Del: integrated -- https://master.php.net/note/delete/89072/integrated Del: useless -- https://master.php.net/note/delete/89072/useless Del: bad code -- https://master.php.net/note/delete/89072/bad+code Del: spam -- https://master.php.net/note/delete/89072/spam Del: non-english -- https://master.php.net/note/delete/89072/non-english Del: in docs -- https://master.php.net/note/delete/89072/in+docs Del: other reasons-- https://master.php.net/note/delete/89072 Reject -- https://master.php.net/note/reject/89072 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#150885) next »