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

search for in the

mb_list_encodings> <mb_internal_encoding
[edit] Last updated: Fri, 24 May 2013

view this page in

mb_language

(PHP 4 >= 4.0.6, PHP 5)

mb_languageGeçerli dili tanımlar/döndürür

Açıklama

mixed mb_language ([ string $dil ] )

Geçerli dili tanımlar/döndürür.

Değiştirgeler

dil

Eposta iletilerini kodlamak için kullanılır. Geçerli değerler: "Japanese", "ja","English","en" ve "uni" (UTF-8). mb_send_mail() bu değeri epostayı kodlamak için kullanır.

Dil ve kodlama: Japonca için ISO-2022-JP/Base64, uni için UTF-8/Base64, İngilizce için ISO-8859-1/quoted printable.

Dönen Değerler

dil belirtilmiş ve geçerli ise TRUE yoksa FALSE döner. dil belirtilmezse, dilin adı bir dizge olarak döndürülür. Evvelce tanımlanmış bir dil yoksa FALSE döner.

Ayrıca Bakınız



add a note add a note User Contributed Notes mb_language - [2 notes]
up
-1
kitchin
2 years ago
Can return 'neutral', which apparently means UTF-8.
up
-2
Sohel Taslim
5 years ago
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);
      
       
?>

 
show source | credits | sitemap | contact | advertising | mirror sites