original_string: public function writeAddress($opts = array())
      {
          if ($opts === true) {
              $opts = array(
                  'encode' => 'UTF-8',
                  'idn' => true
              );
          } elseif (!empty($opts['encode']) && ($opts['encode'] === true)) {
              $opts['encode'] = 'UTF-8';
          }
  
          return $this->_writeAddress($opts);
      }
code: public function writeAddress($opts = array())
      {
          if ($opts === true) {
              $opts = array(
                  'encode' => 'UTF-8',
                  'idn' => true
              );
          } elseif (!empty($opts['encode']) && ($opts['encode'] === true)) {
              $opts['encode'] = 'UTF-8';
          }
  
          return $this->_writeAddress($opts);
      }
code_tokens: public function writeAddress ( $ opts = array ( ) ) { if ( $ opts === true ) { $ opts = array ( 'encode' => 'UTF-8' , 'idn' => true ) ; } elseif ( ! empty ( $ opts [ 'encode' ] ) && ( $ opts [ 'encode' ] === true ) ) { $ opts [ 'encode' ] = 'UTF-8' ; } return $ this -> _writeAddress ( $ opts ) ; }
docstring: Write an address given information in this part.
  
  @param mixed $opts  If boolean true, is equivalent to passing true for
  both 'encode' and 'idn'. If an array, these
  keys are supported:
  - comment: (boolean) If true, include comment(s) in output?
  @since 2.6.0
  DEFAULT: false
  - encode: (mixed) MIME encode the personal/groupname parts?
  If boolean true, encodes in 'UTF-8'.
  If a string, encodes using this charset.
  DEFAULT: false
  - idn: (boolean) If true, encodes IDN domain names (RFC 3490).
  DEFAULT: false
  - noquote: (boolean) If true, don't quote personal part. [@since
  2.4.0]
  DEFAULT: false
  
  @return string  The correctly escaped/quoted address.
docstring_tokens: Write an address given information in this part .