private function getAnyType($string)
    {
        $anyString = '';

        do {
            $anyString .= $string[0];
            $string = substr($string, 1);

            $typeInfo = $this->scanNextType($string);

            // ignore all until markup reached
            if ($typeInfo['type'] !== self::T_MARKUP_OPEN && $typeInfo['type'] !== self::T_MARKUP_OPEN_ESCAPED) {
                $typeInfo = null;
            }
        } while ($typeInfo === null && $string);

        return [
            'type'   => self::T_ANY,
            'match'  => $anyString,
            'length' => strlen($anyString),
        ];
    }
private function getAnyType($string)
    {
        $anyString = '';

        do {
            $anyString .= $string[0];
            $string = substr($string, 1);

            $typeInfo = $this->scanNextType($string);

            // ignore all until markup reached
            if ($typeInfo['type'] !== self::T_MARKUP_OPEN && $typeInfo['type'] !== self::T_MARKUP_OPEN_ESCAPED) {
                $typeInfo = null;
            }
        } while ($typeInfo === null && $string);

        return [
            'type'   => self::T_ANY,
            'match'  => $anyString,
            'length' => strlen($anyString),
        ];
    }
private function getAnyType ( $ string ) { $ anyString = '' ; do { $ anyString .= $ string [ 0 ] ; $ string = substr ( $ string , 1 ) ; $ typeInfo = $ this -> scanNextType ( $ string ) ; // ignore all until markup reached if ( $ typeInfo [ 'type' ] !== self :: T_MARKUP_OPEN && $ typeInfo [ 'type' ] !== self :: T_MARKUP_OPEN_ESCAPED ) { $ typeInfo = null ; } } while ( $ typeInfo === null && $ string ) ; return [ 'type' => self :: T_ANY , 'match' => $ anyString , 'length' => strlen ( $ anyString ) , ] ; }
Get next ANY-type which is a string that does not match to any token

@param string $string

@return array|null
Get next ANY - type which is a string that does not match to any token