public static function isSymbol($str)
    {
        if (strlen($str) === 0) {
            return null;
        }
        if ($str[0] === '@') {
            return Token::FLAG_SYMBOL_VARIABLE;
        } elseif ($str[0] === '`') {
            return Token::FLAG_SYMBOL_BACKTICK;
        } elseif ($str[0] === ':') {
            return Token::FLAG_SYMBOL_PARAMETER;
        }

        return null;
    }
public static function isSymbol($str)
    {
        if (strlen($str) === 0) {
            return null;
        }
        if ($str[0] === '@') {
            return Token::FLAG_SYMBOL_VARIABLE;
        } elseif ($str[0] === '`') {
            return Token::FLAG_SYMBOL_BACKTICK;
        } elseif ($str[0] === ':') {
            return Token::FLAG_SYMBOL_PARAMETER;
        }

        return null;
    }
public static function isSymbol ( $ str ) { if ( strlen ( $ str ) === 0 ) { return null ; } if ( $ str [ 0 ] === '@' ) { return Token :: FLAG_SYMBOL_VARIABLE ; } elseif ( $ str [ 0 ] === '`' ) { return Token :: FLAG_SYMBOL_BACKTICK ; } elseif ( $ str [ 0 ] === ':' ) { return Token :: FLAG_SYMBOL_PARAMETER ; } return null ; }
Checks if the given character is the beginning of a symbol. A symbol
can be either a variable or a field name.

@param string $str string to be checked

@return int the appropriate flag for the symbol type
Checks if the given character is the beginning of a symbol . A symbol can be either a variable or a field name .