private function decodeMatchedEntity($matches)
    {
        $body = $matches[4];
        if (strtoupper($matches[3]) === 'Q') {
            $body = quoted_printable_decode(str_replace('_', '=20', $body));
        } else {
            $body = base64_decode($body);
        }
        $language = $matches[2];
        $decoded = $this->convertEncoding($body, $matches[1], true);
        $this->addToLanguage($decoded, $language);
        return $decoded;
    }
private function decodeMatchedEntity($matches)
    {
        $body = $matches[4];
        if (strtoupper($matches[3]) === 'Q') {
            $body = quoted_printable_decode(str_replace('_', '=20', $body));
        } else {
            $body = base64_decode($body);
        }
        $language = $matches[2];
        $decoded = $this->convertEncoding($body, $matches[1], true);
        $this->addToLanguage($decoded, $language);
        return $decoded;
    }
private function decodeMatchedEntity ( $ matches ) { $ body = $ matches [ 4 ] ; if ( strtoupper ( $ matches [ 3 ] ) === 'Q' ) { $ body = quoted_printable_decode ( str_replace ( '_' , '=20' , $ body ) ) ; } else { $ body = base64_decode ( $ body ) ; } $ language = $ matches [ 2 ] ; $ decoded = $ this -> convertEncoding ( $ body , $ matches [ 1 ] , true ) ; $ this -> addToLanguage ( $ decoded , $ language ) ; return $ decoded ; }
Decodes a matched mime entity part into a string and returns it, after
adding the string into the languages array.

@param string[] $matches
@return string
Decodes a matched mime entity part into a string and returns it after adding the string into the languages array .