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;
    }
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;
    }
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 ; }
Converts string to upper case. Tries mb_strtoupper and if that fails uses regular strtoupper.
@param   string  $strText      Text to be transformed
@param   string  $strEncoding  Encoding of text
@return  string
Converts string to upper case . Tries mb_strtoupper and if that fails uses regular strtoupper .