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

search for in the

mb_list_encodings> <mb_internal_encoding
Last updated: Fri, 20 Nov 2009

view this page in

mb_language

(PHP 4 >= 4.0.6, PHP 5)

mb_languageSet/Get current language

Descrierea

mixed mb_language ([ string $language ] )

Set/Get the current language.

Parametri

language

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.

Valorile întroarse

If language is set and language is valid, it returns TRUE. Otherwise, it returns FALSE. When language is omitted, it returns the language name as a string. If no language is set previously, it then returns FALSE.

Vedeţi de asemenea



add a note add a note User Contributed Notes
mb_language
Sohel Taslim
19-Sep-2007 05:52
It can help you to send an email as with Japanese contain.

<?php

   
       mb_language
("ja");
      
$subject = mb_convert_encoding($subject, "ISO-2022-JP","AUTO");
      
$subject = mb_encode_mimeheader($subject);
   
      
$result = mail($to, $subject, $body, $headers, $sendmail_params);
      
       
?>

mb_list_encodings> <mb_internal_encoding
Last updated: Fri, 20 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites