public static function upperCase($strText, $strEncoding = '')
{
if (is_null(self::$blnMbstring)) {
self::$blnMbstring = extension_loaded('mbstring');
}
if (!self::$blnMbstring) {
$strUpperCaseText = strtoupper($strText);
} else {
if ($strEncoding == '') {
$strUpperCaseText = mb_strtoupper($strText);
} else {
$strUpperCaseText = mb_strtoupper($strText, $strEncoding);
}
}
return $strUpperCaseText;
}