str.ToUpper replace string code example
Example 1: php string to uppwe
$lowercase = "this is lower case";
$uppercase = strtoupper($lowercase);
echo $uppercase;
// THIS IS LOWER CASE
Example 2: php open file capital letters or not
$result = current(preg_grep("/".preg_quote($filename)."/i", glob("$path/*")));