PHP: mb_language - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

mb_list_encodings mb_internal_encoding

Last updated: Fri, 26 Jan 2007

view this page in

# mb_language

(PHP 4 >= 4.0.6, PHP 5)

mb_language -- Set/Get current language

## Description

mixed mb_language ( [string language] )

mb_language() sets language. If `language` is omitted, it returns current language as string.

`language` setting is used for encoding e-mail messages. Valid languages are "Japanese", "ja","English","en" and "uni" (UTF-8). mb_send_mail() uses this setting to encode e-mail.

Language and its setting is ISO-2022-JP/Base64 for Japanese, UTF-8/Base64 for uni, ISO-8859-1/quoted printable for English.

Return Value: If `language` is set and `language` is valid, it returns `TRUE`. Otherwise, it returns `FALSE`. When `language` is omitted, it returns language name as string. If no language is set previously, it returns `FALSE`.

See also mb_send_mail().

add a note User Contributed Notes
mb_language
There are no user contributed notes for this page.
mb_list_encodings mb_internal_encoding

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST