Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 4197

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Set/Get HTTP output character encoding</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.mb-http-input.html">mb_http_input</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.mb-internal-encoding.html">mb_internal_encoding</a></div>
 <div class="up"><a href="ref.mbstring.html">Multibyte String Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><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>
   
 <div class="refsect1 description" id="refsect1-function.mb-http-output-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><strong>mb_http_output</strong></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$encoding</code><span class="initializer"> = mb_http_output()</span></span>
  ] )</div>

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


 <div class="refsect1 parameters" id="refsect1-function.mb-http-output-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">encoding</code></em></span>
     <dd>

      <p class="para">
       If <em><code class="parameter">encoding</code></em> is set,
        <span class="function"><strong>mb_http_output()</strong></span> sets the HTTP output character
       encoding to <em><code class="parameter">encoding</code></em>.
      </p>
      <p class="para">
       If <em><code class="parameter">encoding</code></em> is omitted,
        <span class="function"><strong>mb_http_output()</strong></span> returns the current HTTP output
       character encoding.
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>

 
 <div class="refsect1 returnvalues" id="refsect1-function.mb-http-output-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   If <em><code class="parameter">encoding</code></em> is omitted,
    <span class="function"><strong>mb_http_output()</strong></span> returns the current HTTP output
   character encoding. Otherwise, 
   Returns <strong><code>TRUE</code></strong> on success or <strong><code>FALSE</code></strong> on failure.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.mb-http-output-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"> <span class="function"><a href="function.mb-internal-encoding.html" class="function" rel="rdfs-seeAlso">mb_internal_encoding()</a> - Set/Get internal character encoding</span></li>
    <li class="member"> <span class="function"><a href="function.mb-http-input.html" class="function" rel="rdfs-seeAlso">mb_http_input()</a> - Detect HTTP input character encoding</span></li>
    <li class="member"> <span class="function"><a href="function.mb-detect-order.html" class="function" rel="rdfs-seeAlso">mb_detect_order()</a> - Set/Get character encoding detection order</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.mb-http-input.html">mb_http_input</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.mb-internal-encoding.html">mb_internal_encoding</a></div>
 <div class="up"><a href="ref.mbstring.html">Multibyte String Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>