note 110340 added to function.glob

From: Date: Fri, 12 Oct 2012 16:08:13 +0000
Subject: note 110340 added to function.glob
Groups: php.notes 
Request: Send a blank email to php-notes+get-191273@lists.php.net to get a copy of this message
Note that in case you are using braces with glob you might retrieve duplicated entries for files that matche more than one item : <?php $a = glob('/path/*{foo,bar}.dat',GLOB_BRACE); print_r($a); ?> Result : Array ( [0] => /path/file_foo.dat [1] => /path/file_foobar.dat [2] => /path/file_foobar.dat ) ---- Server IP: 195.221.21.36 Probable Submitter: 2a01:e35:8a7e:e400:e478:4a53:7a0:9c27 ---- Manual Page -- http://www.php.net/manual/en/function.glob.php Edit -- https://master.php.net/note/edit/110340 Del: integrated -- https://master.php.net/note/delete/110340/integrated Del: useless -- https://master.php.net/note/delete/110340/useless Del: bad code -- https://master.php.net/note/delete/110340/bad+code Del: spam -- https://master.php.net/note/delete/110340/spam Del: non-english -- https://master.php.net/note/delete/110340/non-english Del: in docs -- https://master.php.net/note/delete/110340/in+docs Del: other reasons-- https://master.php.net/note/delete/110340 Reject -- https://master.php.net/note/reject/110340 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#191273) next »