public static function isKeyword($str, $isReserved = false)
    {
        $str = strtoupper($str);

        if (isset(static::$KEYWORDS[$str])) {
            if ($isReserved && ! (static::$KEYWORDS[$str] & Token::FLAG_KEYWORD_RESERVED)) {
                return null;
            }

            return static::$KEYWORDS[$str];
        }

        return null;
    }
public static function isKeyword($str, $isReserved = false)
    {
        $str = strtoupper($str);

        if (isset(static::$KEYWORDS[$str])) {
            if ($isReserved && ! (static::$KEYWORDS[$str] & Token::FLAG_KEYWORD_RESERVED)) {
                return null;
            }

            return static::$KEYWORDS[$str];
        }

        return null;
    }
public static function isKeyword ( $ str , $ isReserved = false ) { $ str = strtoupper ( $ str ) ; if ( isset ( static :: $ KEYWORDS [ $ str ] ) ) { if ( $ isReserved && ! ( static :: $ KEYWORDS [ $ str ] & Token :: FLAG_KEYWORD_RESERVED ) ) { return null ; } return static :: $ KEYWORDS [ $ str ] ; } return null ; }
Checks if the given string is a keyword.

@param string $str        string to be checked
@param bool   $isReserved checks if the keyword is reserved

@return int
Checks if the given string is a keyword .