note 74109 added to function.glob
| From: | php-general at lists dot php dot net | Date: | Sun, 25 Mar 2007 16:41:26 +0000 |
| Subject: | note 74109 added to function.glob | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-124790@lists.php.net to get a copy of this message | ||
Reply to ny_obaATgmxDOTnet:
You could also use sql_regcase() to build a pattern for case insensitive matches.
You may also want to set the locale before, so it is used when building the pattern.
<?php
$pattern = sql_case("*.pdf");
var_dump(glob($pattern));
?>
should therefore match file.pdf AND OtherFile.PDF
See http://www.php.net/sql_regcase for more
information.
----
Server IP: 69.147.83.197
Probable Submitter: 89.159.49.90
----
Manual Page -- http://www.php.net/manual/en/function.glob.php
Edit -- https://master.php.net/note/edit/74109
Del: integrated -- https://master.php.net/note/delete/74109/integrated
Del: useless -- https://master.php.net/note/delete/74109/useless
Del: bad code -- https://master.php.net/note/delete/74109/bad+code
Del: spam -- https://master.php.net/note/delete/74109/spam
Del: non-english -- https://master.php.net/note/delete/74109/non-english
Del: in docs -- https://master.php.net/note/delete/74109/in+docs
Del: other reasons-- https://master.php.net/note/delete/74109
Reject -- https://master.php.net/note/reject/74109
Search -- https://master.php.net/manage/user-notes.php