final public static function firstCharacter($strString)
    {
        if (defined('QCUBED_ENCODING')) {
            if (mb_strlen($strString, QCUBED_ENCODING) > 0) {
                return mb_substr($strString, 0, 1, QCUBED_ENCODING);
            } else {
                return null;
            }
        } else {
            if (strlen($strString)) {
                return $strString[0];
            } else {
                return null;
            }
        }
    }
final public static function firstCharacter($strString)
    {
        if (defined('QCUBED_ENCODING')) {
            if (mb_strlen($strString, QCUBED_ENCODING) > 0) {
                return mb_substr($strString, 0, 1, QCUBED_ENCODING);
            } else {
                return null;
            }
        } else {
            if (strlen($strString)) {
                return $strString[0];
            } else {
                return null;
            }
        }
    }
final public static function firstCharacter ( $ strString ) { if ( defined ( 'QCUBED_ENCODING' ) ) { if ( mb_strlen ( $ strString , QCUBED_ENCODING ) > 0 ) { return mb_substr ( $ strString , 0 , 1 , QCUBED_ENCODING ) ; } else { return null ; } } else { if ( strlen ( $ strString ) ) { return $ strString [ 0 ] ; } else { return null ; } } }
Returns the first character of a given string, or null if the given
string is null.

@param string $strString

@return string the first character, or null
Returns the first character of a given string or null if the given string is null .