Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mb_get_info(3) [php man page]

MB_GET_INFO(3)								 1							    MB_GET_INFO(3)

mb_get_info - Get internal settings of mbstring

SYNOPSIS
mixed mb_get_info ([string $type = "all"]) DESCRIPTION
mb_get_info(3) returns the internal setting parameters of mbstring. PARAMETERS
o $type - If $type isn't specified or is specified to "all", an array having the elements "internal_encoding", "http_output", "http_input", "func_overload", "mail_charset", "mail_header_encoding", "mail_body_encoding" will be returned. If $type is speci- fied as "http_output", "http_input", "internal_encoding", "func_overload", the specified setting parameter will be returned. RETURN VALUES
An array of type information if $type is not specified, otherwise a specific $type. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.1.3 | | | | | | | The entries "mail_charset", "mail_header_encod- | | | ing", and "mail_body_encoding" were made avail- | | | able. | | | | | 5.3.0 | | | | | | | The entry "http_output_conv_mimetypes" was made | | | available. | | | | +--------+---------------------------------------------------+ SEE ALSO
mb_regex_encoding(3), mb_http_output(3). PHP Documentation Group MB_GET_INFO(3)

Check Out this Related Man Page

MB_OUTPUT_HANDLER(3)							 1						      MB_OUTPUT_HANDLER(3)

mb_output_handler - Callback function converts character encoding in output buffer

SYNOPSIS
string mb_output_handler (string $contents, int $status) DESCRIPTION
mb_output_handler(3) is ob_start(3) callback function. mb_output_handler(3) converts characters in the output buffer from internal charac- ter encoding to HTTP output character encoding. PARAMETERS
o $contents - The contents of the output buffer. o $status - The status of the output buffer. RETURN VALUES
The converted string. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 4.1.0 | | | | | | | This handler now adds the charset HTTP header | | | when the following conditions are met: | | | | | | o Content-Type has not been set, | | | using header(3). | | | | | | o The default MIME type begins with | | | text/. | | | | | | o The mbstring.http_input setting | | | is something other than | | | pass. | | | | +--------+---------------------------------------------------+ EXAMPLES
Example #1 mb_output_handler(3) example <?php mb_http_output("UTF-8"); ob_start("mb_output_handler"); ?> NOTES
Note If you want to output binary data, such as an image, using PHP 4.3.0 or later, a Content-Type: header must be set using header(3) before any binary data is sent to the client (e.g. header("Content-Type: image/png")). If Content-Type: header is sent, output char- acter encoding conversion will not be performed. Note that if 'Content-Type: text/*' is sent, the content body is regarded as text; conversion will take place. If you want to output binary data, such as an image, using PHP 4.2.x or earlier, you must set output encoding to "pass" using mb_http_output(3). SEE ALSO
ob_start(3). PHP Documentation Group MB_OUTPUT_HANDLER(3)
Man Page