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-http-output.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-http-output.php',
   
1 => 'mb_http_output',
  ),
 
'up' =>
  array (
   
0 => 'ref.mbstring.php',
   
1 => 'Multibyte String Functions',
  ),
 
'prev' =>
  array (
   
0 => 'function.mb-http-input.php',
   
1 => 'mb_http_input',
  ),
 
'next' =>
  array (
   
0 => 'function.mb-internal-encoding.php',
   
1 => 'mb_internal_encoding',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

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

 </div>
  
 <a name="function.mb-http-output.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_http_output</b></span>
    ([ <span class="methodparam"><span class="type">string</span> <tt class="parameter">$encoding</tt></span>
  ] )</div>

  <p class="para rdfs-comment">
   Set/Get the HTTP output character encoding.
   Output after this function is converted to <i><tt class="parameter">encoding</tt></i>
.
  </p>
 </div>


 <a name="function.mb-http-output.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">encoding</tt></i>
</span>

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

      <p class="para">
       If <i><tt class="parameter">encoding</tt></i>
 is set,
       <b>mb_http_output()</b> sets the HTTP output character
       encoding to <i><tt class="parameter">encoding</tt></i>
.
      </p>
      <p class="para">
       If <i><tt class="parameter">encoding</tt></i>
 is omitted,
       <b>mb_http_output()</b> returns the current HTTP output
       character encoding.
      </p>
     </dd>

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

 
 <a name="function.mb-http-output.returnvalues"></a><div class="refsect1 returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   If <i><tt class="parameter">encoding</tt></i>
 is omitted,
   <b>mb_http_output()</b> returns the current HTTP output
   character encoding. Otherwise,
   Returns <b><tt class="constant">TRUE</tt></b> on success or <b><tt class="constant">FALSE</tt></b> on failure.
  </p>
 </div>


 <a name="function.mb-http-output.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-internal-encoding.php" class="function" rel="rdfs-seeAlso">mb_internal_encoding()</a> - Set/Get internal character encoding</li>
    <li class="member"><a href="function.mb-http-input.php" class="function" rel="rdfs-seeAlso">mb_http_input()</a> - Detect HTTP input character encoding</li>
    <li class="member"><a href="function.mb-detect-order.php" class="function" rel="rdfs-seeAlso">mb_detect_order()</a> - Set/Get character encoding detection order</li>
   </ul><p>
  </p>
 </div>


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