* The input charset. *

* @param out_charset string

* The output charset. *

*

* If you append the string //TRANSLIT to * out_charset transliteration is activated. This * means that when a character can't be represented in the target charset, * it can be approximated through one or several similarly looking * characters. If you append the string //IGNORE, * characters that cannot be represented in the target charset are silently * discarded. Otherwise, str is cut from the first * illegal character and an E_NOTICE is generated. *

* @param str string

* The string to be converted. *

* @return string the converted string&return.falseforfailure;. */ function iconv ($in_charset, $out_charset, $str) {} /** * Retrieve internal configuration variables of iconv extension * @link http://www.php.net/manual/en/function.iconv-get-encoding.php * @param type string[optional]

* The value of the optional type can be: * * all * input_encoding * output_encoding * internal_encoding * *

* @return mixed the current value of the internal configuration variable if * successful&return.falseforfailure;. *

*

* If type is omitted or set to "all", * iconv_get_encoding returns an array that * stores all these variables. */ function iconv_get_encoding ($type = null) {} /** * Set current setting for character encoding conversion * @link http://www.php.net/manual/en/function.iconv-set-encoding.php * @param type string

* The value of type can be any one of these: * * input_encoding * output_encoding * internal_encoding * *

* @param charset string

* The character set. *

* @return bool Returns true on success, false on failure. */ function iconv_set_encoding ($type, $charset) {} /** * Returns the character count of string * @link http://www.php.net/manual/en/function.iconv-strlen.php * @param str string

* The string. *

* @param charset string[optional]

* If charset parameter is omitted, * str is assumed to be encoded in * iconv.internal_encoding. *

* @return int the character count of str, as an integer. */ function iconv_strlen ($str, $charset = null) {} /** * Cut out part of a string * @link http://www.php.net/manual/en/function.iconv-substr.php * @param str string

* The original string. *

* @param offset int

* If offset is non-negative, * iconv_substr cuts the portion out of * str beginning at offset'th * character, counting from zero. *

*

* If offset is negative, * iconv_substr cuts out the portion beginning * at the position, offset characters * away from the end of str. *

* @param length int[optional]

* If length is given and is positive, the return * value will contain at most length characters * of the portion that begins at offset * (depending on the length of string). *

*

* If negative length is passed, * iconv_substr cuts the portion out of * str from the offset'th * character up to the character that is * length characters away from the end of the string. * In case offset is also negative, the start position * is calculated beforehand according to the rule explained above. *

* @param charset string[optional]

* If charset parameter is omitted, * string are assumed to be encoded in * iconv.internal_encoding. *

*

* Note that offset and length * parameters are always deemed to represent offsets that are * calculated on the basis of the character set determined by * charset, whilst the counterpart * substr always takes these for byte offsets. *

* @return string the portion of str specified by the * offset and length parameters. *

*

* If str is shorter than offset * characters long, false will be returned. */ function iconv_substr ($str, $offset, $length = null, $charset = null) {} /** * Finds position of first occurrence of a needle within a haystack * @link http://www.php.net/manual/en/function.iconv-strpos.php * @param haystack string

* The entire string. *

* @param needle string

* The searched substring. *

* @param offset int[optional]

* The optional offset parameter specifies * the position from which the search should be performed. *

* @param charset string[optional]

* If charset parameter is omitted, * string are assumed to be encoded in * iconv.internal_encoding. *

* @return int the numeric position of the first occurrence of * needle in haystack. *

*

* If needle is not found, * iconv_strpos will return false. */ function iconv_strpos ($haystack, $needle, $offset = null, $charset = null) {} /** * Finds the last occurrence of a needle within a haystack * @link http://www.php.net/manual/en/function.iconv-strrpos.php * @param haystack string

* The entire string. *

* @param needle string

* The searched substring. *

* @param charset string[optional]

* If charset parameter is omitted, * string are assumed to be encoded in * iconv.internal_encoding. *

* @return int the numeric position of the last occurrence of * needle in haystack. *

*

* If needle is not found, * iconv_strrpos will return false. */ function iconv_strrpos ($haystack, $needle, $charset = null) {} /** * Composes a MIME header field * @link http://www.php.net/manual/en/function.iconv-mime-encode.php * @param field_name string

* The field name. *

* @param field_value string

* The field value. *

* @param preferences array[optional]

* You can control the behaviour of iconv_mime_encode * by specifying an associative array that contains configuration items * to the optional third parameter preferences. * The items supported by iconv_mime_encode are * listed below. Note that item names are treated case-sensitive. * * Configuration items supported by iconv_mime_encode * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
ItemTypeDescriptionDefault valueExample
schemestring * Specifies the method to encode a field value by. The value of * this item may be either "B" or "Q", where "B" stands for * base64 encoding scheme and "Q" stands for * quoted-printable encoding scheme. * BB
input-charsetstring * Specifies the character set in which the first parameter * field_name and the second parameter * field_value are presented. If not given, * iconv_mime_encode assumes those parameters * are presented to it in the * iconv.internal_encoding * ini setting. * * iconv.internal_encoding * ISO-8859-1
output-charsetstring * Specifies the character set to use to compose the * MIME header. * * iconv.internal_encoding * UTF-8
line-lengthinteger * Specifies the maximum length of the header lines. The resulting * header is "folded" to a set of multiple lines in case * the resulting header field would be longer than the value of this * parameter, according to * RFC2822 - Internet Message Format. * If not given, the length will be limited to 76 characters. * 76996
line-break-charsstring * Specifies the sequence of characters to append to each line * as an end-of-line sign when "folding" is performed on a long header * field. If not given, this defaults to "\r\n" * (CR LF). Note that * this parameter is always treated as an ASCII string regardless * of the value of input-charset. * \r\n\n
*

* @return string an encoded MIME field on success, * or false if an error occurs during the encoding. */ function iconv_mime_encode ($field_name, $field_value, array $preferences = null) {} /** * Decodes a MIME header field * @link http://www.php.net/manual/en/function.iconv-mime-decode.php * @param encoded_header string

* The encoded header, as a string. *

* @param mode int[optional]

* mode determines the behaviour in the event * iconv_mime_decode encounters a malformed * MIME header field. You can specify any combination * of the following bitmasks. * * Bitmasks acceptable to iconv_mime_decode * * * * * * * * * * * * * * * * * * * * * *
ValueConstantDescription
1ICONV_MIME_DECODE_STRICT * If set, the given header is decoded in full conformance with the * standards defined in RFC2047. * This option is disabled by default because there are a lot of * broken mail user agents that don't follow the specification and don't * produce correct MIME headers. *
2ICONV_MIME_DECODE_CONTINUE_ON_ERROR * If set, iconv_mime_decode_headers * attempts to ignore any grammatical errors and continue to process * a given header. *
*

* @param charset string[optional]

* The optional charset parameter specifies the * character set to represent the result by. If omitted, * iconv.internal_encoding * will be used. *

* @return string a decoded MIME field on success, * or false if an error occurs during the decoding. */ function iconv_mime_decode ($encoded_header, $mode = null, $charset = null) {} /** * Decodes multiple MIME header fields at once * @link http://www.php.net/manual/en/function.iconv-mime-decode-headers.php * @param encoded_headers string

* The encoded headers, as a string. *

* @param mode int[optional]

* mode determines the behaviour in the event * iconv_mime_decode_headers encounters a malformed * MIME header field. You can specify any combination * of the following bitmasks. * * Bitmasks acceptable to iconv_mime_decode_headers * * * * * * * * * * * * * * * * * * * * * *
ValueConstantDescription
1ICONV_MIME_DECODE_STRICT * If set, the given header is decoded in full conformance with the * standards defined in RFC2047. * This option is disabled by default because there are a lot of * broken mail user agents that don't follow the specification and don't * produce correct MIME headers. *
2ICONV_MIME_DECODE_CONTINUE_ON_ERROR * If set, iconv_mime_decode_headers * attempts to ignore any grammatical errors and continue to process * a given header. *
*

* @param charset string[optional]

* The optional charset parameter specifies the * character set to represent the result by. If omitted, * iconv.internal_encoding * will be used. *

* @return array an associative array that holds a whole set of * MIME header fields specified by * encoded_headers on success, or false * if an error occurs during the decoding. *

*

* Each key of the return value represents an individual * field name and the corresponding element represents a field value. * If more than one field of the same name are present, * iconv_mime_decode_headers automatically incorporates * them into a numerically indexed array in the order of occurrence. */ function iconv_mime_decode_headers ($encoded_headers, $mode = null, $charset = null) {} /** * string * @link http://www.php.net/manual/en/iconv.constants.php */ define ('ICONV_IMPL', "glibc"); /** * string * @link http://www.php.net/manual/en/iconv.constants.php */ define ('ICONV_VERSION', 2.19); /** * integer * @link http://www.php.net/manual/en/iconv.constants.php */ define ('ICONV_MIME_DECODE_STRICT', 1); /** * integer * @link http://www.php.net/manual/en/iconv.constants.php */ define ('ICONV_MIME_DECODE_CONTINUE_ON_ERROR', 2); // End of iconv v. ?>