<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = 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 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.mb-regex-encoding.php',
    1 => 'mb_regex_encoding',
    2 => 'D&eacute;finit/R&eacute;cup&egrave;re l\'encodage des caract&egrave;res pour les expressions r&eacute;guli&egrave;res multioctets',
  ),
  'up' => 
  array (
    0 => 'ref.mbstring.php',
    1 => 'Fonctions sur les cha&icirc;nes de caract&egrave;res multioctets',
  ),
  'prev' => 
  array (
    0 => 'function.mb-preferred-mime-name.php',
    1 => 'mb_preferred_mime_name',
  ),
  'next' => 
  array (
    0 => 'function.mb-regex-set-options.php',
    1 => 'mb_regex_set_options',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/mbstring/functions/mb-regex-encoding.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.mb-regex-encoding" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mb_regex_encoding</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">mb_regex_encoding</span> &mdash; <span class="dc-title">Définit/Récupère l&#039;encodage des caractères pour les expressions régulières multioctets</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.mb-regex-encoding-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>mb_regex_encoding</strong></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$encoding</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></span></div>

  <p class="para rdfs-comment">
   Définit/Récupère l&#039;encodage des caractères pour les
   expressions régulières multioctets.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.mb-regex-encoding-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">encoding</code></dt>
     <dd>
      <p class="para">Le paramètre <code class="parameter">encoding</code>
est l&#039;encodage des caractères. S&#039;il est omis ou <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>, l&#039;encodage de caractères interne
sera utilisé.</p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.mb-regex-encoding-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="simpara">
   Si <code class="parameter">encoding</code> est défini, alors
   Cette fonction retourne <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> en cas de succès ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si une erreur survient..
   Dans ce cas, l&#039;encodage de caractères interne n&#039;est pas
   modifié. Si l&#039;argument <code class="parameter">encoding</code>
   est omis, alors le nom de l&#039;encodage de caractères courant
   pour les expressions régulières multioctets sera retourné.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.mb-regex-encoding-changelog">
  <h3 class="title">Historique</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Version</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
 <td>8.0.0</td>
 <td>
  <code class="parameter">encoding</code> est désormais nullable.
 </td>
</tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.mb-regex-encoding-seealso">
  <h3 class="title">Voir aussi</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.mb-internal-encoding.php" class="function" rel="rdfs-seeAlso">mb_internal_encoding()</a> - Lit/modifie l'encodage interne</span></li>
    <li><span class="function"><a href="function.mb-ereg.php" class="function" rel="rdfs-seeAlso">mb_ereg()</a> - Recherche par expression rationnelle avec support des caract&egrave;res multioctets</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>