|
|
Joined: Dec 1999
Posts: 30,867
Master Elite Member
|
StrArr_ToGlobExpr_NoCase() - Used to create a no-case glob expression from a list of file suffixesThis can be used with the other "glob no-case" functions ( Str_Glob_NoCase() and StrArr_Glob_NoCase())to help create a complete solution.
function StrArr_ToGlobExpr_NoCase ($Suffixes) {
$r = '';
for ($i = 0; $i < count($Suffixes); $i++) {
$r .= '[' . $Suffixes[$i] . '],';
}
$r = rtrim($r, ',');
return $r;
}
|
|
|
|
Entire Thread
|
StrArr_ToGlobExpr_NoCase() - Used to create a no-case glob expression from a list of file suffixes
|
Russ
|
05/14/15 05:42 PM
|
|
|
|