note 106295 deleted from function.strpos by levim

From: Date: Fri, 06 Dec 2013 16:32:59 +0000
Subject: note 106295 deleted from function.strpos by levim
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-197810@lists.php.net to get a copy of this message
Note Submitter: Mark Oates ---- When using GLOB_BRACE to find files on a local computer, note that including the drive lettername within the braces may cause the behavior to not work as expected: <?php $location = "{c:/foo/*.txt,c:/foo/bar/*.txt}"; // < will NOT work $location = "c:{/foo/*.txt,/foo/bar/*.txt}"; // < works $location = "c:/{foo/*.txt,foo/bar/*.txt}"; // < works $location = "{/foo/*.txt,/foo/bar/*.txt}"; // < works print_r(glob($location, GLOB_BRACE)); ?>

« previous php.notes (#197810) next »