private function isHexidecimalNumericString($tokens, $stackPtr)
    {
        $token = $tokens[$stackPtr];

        if ($token['code'] === \T_CONSTANT_ENCAPSED_STRING && preg_match('`^0x[a-f0-9]+$`iD', $this->stripQuotes($token['content'])) === 1) {
            return true;
        }

        return false;
    }
private function isHexidecimalNumericString($tokens, $stackPtr)
    {
        $token = $tokens[$stackPtr];

        if ($token['code'] === \T_CONSTANT_ENCAPSED_STRING && preg_match('`^0x[a-f0-9]+$`iD', $this->stripQuotes($token['content'])) === 1) {
            return true;
        }

        return false;
    }
private function isHexidecimalNumericString ( $ tokens , $ stackPtr ) { $ token = $ tokens [ $ stackPtr ] ; if ( $ token [ 'code' ] === \ T_CONSTANT_ENCAPSED_STRING && preg_match ( '`^0x[a-f0-9]+$`iD' , $ this -> stripQuotes ( $ token [ 'content' ] ) ) === 1 ) { return true ; } return false ; }
Is the current token a hexidecimal numeric string ?

@param array $tokens   Token stack.
@param int   $stackPtr The current position in the token stack.

@return bool
Is the current token a hexidecimal numeric string ?