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

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/function.mb-language.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/ref.mbstring.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'function.mb-language.php',
   
1 => 'mb_language',
  ),
 
'up' =>
  array (
   
0 => 'ref.mbstring.php',
   
1 => 'Multibyte String Functions',
  ),
 
'prev' =>
  array (
   
0 => 'function.mb-internal-encoding.php',
   
1 => 'mb_internal_encoding',
  ),
 
'next' =>
  array (
   
0 => 'function.mb-list-encodings.php',
   
1 => 'mb_list_encodings',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="function.mb-language" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mb_language</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.6, PHP 5)</p><p class="refpurpose"><span class="refname">mb_language</span> &mdash; <span class="dc-title">Set/Get current language</span></p>

 </div>
  
 <a name="function.mb-language.description"></a><div class="refsect1 description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><a href="language.pseudo-types.php#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><b>mb_language</b></span>
    ([ <span class="methodparam"><span class="type">string</span> <tt class="parameter">$language</tt></span>
  ] )</div>

  <p class="para rdfs-comment">
   Set/Get the current language.
  </p>
 </div>


 <a name="function.mb-language.parameters"></a><div class="refsect1 parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   </p><dl>

    <dt class="varlistentry">

     <span class="term"><i><tt class="parameter">language</tt></i>
</span>

     </dt><dd class="listitem">

      <p class="para">
       Used for encoding
       e-mail messages. Valid languages are &quot;Japanese&quot;,
       &quot;ja&quot;,&quot;English&quot;,&quot;en&quot; and &quot;uni&quot;
       (UTF-8). <a href="function.mb-send-mail.php" class="function">mb_send_mail()</a> uses this setting to
       encode e-mail.
      </p>
      <p class="para">
       Language and its setting is ISO-2022-JP/Base64 for
       Japanese, UTF-8/Base64 for uni, ISO-8859-1/quoted printable for
       English.
      </p>
     </dd>

   
   </dl>
<p>
  </p>
 </div>

 
 <a name="function.mb-language.returnvalues"></a><div class="refsect1 returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   If <i><tt class="parameter">language</tt></i>
 is set and
   <i><tt class="parameter">language</tt></i>
 is valid, it returns
   <b><tt class="constant">TRUE</tt></b>. Otherwise, it returns <b><tt class="constant">FALSE</tt></b>.
   When <i><tt class="parameter">language</tt></i>
 is omitted, it returns the language
   name as a <a href="language.types.string.php" class="type string">string</a>. If no language is set previously, it then returns
   <b><tt class="constant">FALSE</tt></b>.
  </p>
 </div>


 <a name="function.mb-language.seealso"></a><div class="refsect1 seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   </p><ul class="simplelist">
    <li class="member"><a href="function.mb-send-mail.php" class="function" rel="rdfs-seeAlso">mb_send_mail()</a> - Send encoded mail</li>
   </ul><p>
  </p>
 </div>


</div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites