public static function lowerCase($strText, $strEncoding = '')
    {

        if (is_null(self::$blnMbstring)) {
            self::$blnMbstring = extension_loaded('mbstring');
        }

        if (!self::$blnMbstring) {
            $strLowerCaseText = strtolower($strText);
        } else {
            if ($strEncoding == '') {
                $strLowerCaseText = mb_strtolower($strText);
            } else {
                $strLowerCaseText = mb_strtolower($strText, $strEncoding);
            }
        }

        return $strLowerCaseText;
    }
public static function lowerCase($strText, $strEncoding = '')
    {

        if (is_null(self::$blnMbstring)) {
            self::$blnMbstring = extension_loaded('mbstring');
        }

        if (!self::$blnMbstring) {
            $strLowerCaseText = strtolower($strText);
        } else {
            if ($strEncoding == '') {
                $strLowerCaseText = mb_strtolower($strText);
            } else {
                $strLowerCaseText = mb_strtolower($strText, $strEncoding);
            }
        }

        return $strLowerCaseText;
    }
public static function lowerCase ( $ strText , $ strEncoding = '' ) { if ( is_null ( self :: $ blnMbstring ) ) { self :: $ blnMbstring = extension_loaded ( 'mbstring' ) ; } if ( ! self :: $ blnMbstring ) { $ strLowerCaseText = strtolower ( $ strText ) ; } else { if ( $ strEncoding == '' ) { $ strLowerCaseText = mb_strtolower ( $ strText ) ; } else { $ strLowerCaseText = mb_strtolower ( $ strText , $ strEncoding ) ; } } return $ strLowerCaseText ; }
Converts string to lower case. Tries mb_strtolower and if that fails uses regular strtolower.
@param   string  $strText      Text to be transformed
@param   string  $strEncoding  Encoding of text
@return  string
Converts string to lower case . Tries mb_strtolower and if that fails uses regular strtolower .