<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.pcre.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.preg-match-all.php',
    1 => 'preg_match_all',
    2 => 'Expression rationnelle globale',
  ),
  'up' => 
  array (
    0 => 'ref.pcre.php',
    1 => 'Fonctions PCRE',
  ),
  'prev' => 
  array (
    0 => 'function.preg-match.php',
    1 => 'preg_match',
  ),
  'next' => 
  array (
    0 => 'function.preg-quote.php',
    1 => 'preg_quote',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/pcre/functions/preg-match-all.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.preg-match-all" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">preg_match_all</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">preg_match_all</span> &mdash; <span class="dc-title">Expression rationnelle globale</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.preg-match-all-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>preg_match_all</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$pattern</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$subject</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter reference">&$matches</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$flags</code><span class="initializer"> = 0</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$offset</code><span class="initializer"> = 0</span></span><br>): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Analyse <code class="parameter">subject</code> pour trouver l&#039;expression
   <code class="parameter">pattern</code> et met les résultats dans
   <code class="parameter">matches</code>, dans l&#039;ordre spécifié par
   <code class="parameter">flags</code>.
  </p>
  <p class="para">
   Après avoir trouvé un premier résultat, la recherche continue jusqu&#039;à
   la fin de la chaîne.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.preg-match-all-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">pattern</code></dt>
     <dd>
      <p class="para">
       Le masque à chercher, sous la forme d&#039;une <a href="language.types.string.php" class="link">chaîne de caractères</a>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">subject</code></dt>
     <dd>
      <p class="para">
       La chaîne d&#039;entrée.
      </p>
     </dd>
    
    
     <dt><code class="parameter">matches</code></dt>
     <dd>
      <p class="para">
       Tableau contenant tous les résultats, dans un tableau multidimensionnel ordonné
       suivant le paramètre <code class="parameter">flags</code>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">flags</code></dt>
     <dd>
      <span class="simpara">
       Si aucun drapeau d&#039;ordre n&#039;est donné,
       <strong><code><a href="pcre.constants.php#constant.preg-pattern-order">PREG_PATTERN_ORDER</a></code></strong> est utilisé par défaut.
      </span>
      <p class="para">
       Peut être une combinaison des valeurs suivantes
       (notez bien qu&#039;il est incohérent d&#039;utiliser
       <strong><code><a href="pcre.constants.php#constant.preg-pattern-order">PREG_PATTERN_ORDER</a></code></strong> avec
       <strong><code><a href="pcre.constants.php#constant.preg-set-order">PREG_SET_ORDER</a></code></strong> ) :
       <dl>
        
         <dt><strong><code><a href="pcre.constants.php#constant.preg-pattern-order">PREG_PATTERN_ORDER</a></code></strong></dt>
         <dd>
          <p class="para">
           L&#039;ordre est tel que <var class="varname">$matches[0]</var> est un tableau qui
           contient les résultats qui satisfont le masque
           complet, <var class="varname">$matches[1]</var> est un tableau qui contient les
           résultats qui satisfont la première
           parenthèse capturante, etc.
          </p>
          <p class="para">
           <div class="informalexample">
            <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />preg_match_all</span><span style="color: #007700">(</span><span style="color: #DD0000">"|&lt;[^&gt;]+&gt;(.*)&lt;/[^&gt;]+&gt;|U"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"&lt;b&gt;exemple : &lt;/b&gt;&lt;div align=left&gt;ceci est un test&lt;/div&gt;"</span><span style="color: #007700">,<br />    </span><span style="color: #0000BB">$out</span><span style="color: #007700">, </span><span style="color: #0000BB">PREG_PATTERN_ORDER</span><span style="color: #007700">);<br />echo </span><span style="color: #0000BB">$out</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">][</span><span style="color: #0000BB">0</span><span style="color: #007700">] . </span><span style="color: #DD0000">", " </span><span style="color: #007700">. </span><span style="color: #0000BB">$out</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">][</span><span style="color: #0000BB">1</span><span style="color: #007700">] . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br />echo </span><span style="color: #0000BB">$out</span><span style="color: #007700">[</span><span style="color: #0000BB">1</span><span style="color: #007700">][</span><span style="color: #0000BB">0</span><span style="color: #007700">] . </span><span style="color: #DD0000">", " </span><span style="color: #007700">. </span><span style="color: #0000BB">$out</span><span style="color: #007700">[</span><span style="color: #0000BB">1</span><span style="color: #007700">][</span><span style="color: #0000BB">1</span><span style="color: #007700">] . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
            </div>

            <p class="para">L&#039;exemple ci-dessus va afficher :</p>
            <div class="example-contents screen">
<div class="annotation-interactive parameterscode"><pre class="parameterscode">&lt;b&gt;exemple : &lt;/b&gt;, &lt;div align=left&gt;ceci est un test&lt;/div&gt;
exemple : , ceci est un test</pre>
</div>
            </div>
            <p class="para">
             Ainsi, <var class="varname">$out[0]</var> est un tableau qui contient les résultats qui
             satisfont le masque complet, et <var class="varname">$out[1]</var> est un tableau qui contient
             les balises entre &gt; et &lt;.
            </p>
           </div>
          </p>
          <p class="para">
           Si le masque contient des sous-masques nommés, <var class="varname">$matches</var>
           contiendra en plus des entrées qui auront pour clés les noms des sous-masques.
          </p>
          <p class="para">
           Si le masque contient des sous-masques nommés en double, seul le sous-masque
           le plus à droite sera enregistré dans <var class="varname">$matches[NAME]</var>.
           <div class="informalexample">
            <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />preg_match_all</span><span style="color: #007700">(<br />    </span><span style="color: #DD0000">'/(?J)(?&lt;match&gt;foo)|(?&lt;match&gt;bar)/'</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">'foo bar'</span><span style="color: #007700">,<br />    </span><span style="color: #0000BB">$matches</span><span style="color: #007700">,<br />    </span><span style="color: #0000BB">PREG_PATTERN_ORDER<br /></span><span style="color: #007700">);<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$matches</span><span style="color: #007700">[</span><span style="color: #DD0000">'match'</span><span style="color: #007700">]);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
            </div>

            <p class="para">L&#039;exemple ci-dessus va afficher :</p>
            <div class="example-contents screen">
<div class="annotation-interactive parameterscode"><pre class="parameterscode">Array
(
    [0] =&gt;
    [1] =&gt; bar
)</pre>
</div>
            </div>
           </div>
          </p>
         </dd>
        
        
         <dt><strong><code><a href="pcre.constants.php#constant.preg-set-order">PREG_SET_ORDER</a></code></strong></dt>
         <dd>
          <p class="para">
           Les résultats sont classés de telle façon que <var class="varname">$matches[0]</var>
           contient la première série de résultats, <var class="varname">$matches[1]</var> contient
           la deuxième, etc.
           <div class="informalexample">
            <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />preg_match_all</span><span style="color: #007700">(</span><span style="color: #DD0000">"|&lt;[^&gt;]+&gt;(.*)&lt;/[^&gt;]+&gt;|U"</span><span style="color: #007700">,<br />    </span><span style="color: #DD0000">"&lt;b&gt;exemple : &lt;/b&gt;&lt;div align=\"left\"&gt;ceci est un test&lt;/div&gt;"</span><span style="color: #007700">,<br />    </span><span style="color: #0000BB">$out</span><span style="color: #007700">, </span><span style="color: #0000BB">PREG_SET_ORDER</span><span style="color: #007700">);<br />echo </span><span style="color: #0000BB">$out</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">][</span><span style="color: #0000BB">0</span><span style="color: #007700">] . </span><span style="color: #DD0000">", " </span><span style="color: #007700">. </span><span style="color: #0000BB">$out</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">][</span><span style="color: #0000BB">1</span><span style="color: #007700">] . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br />echo </span><span style="color: #0000BB">$out</span><span style="color: #007700">[</span><span style="color: #0000BB">1</span><span style="color: #007700">][</span><span style="color: #0000BB">0</span><span style="color: #007700">] . </span><span style="color: #DD0000">", " </span><span style="color: #007700">. </span><span style="color: #0000BB">$out</span><span style="color: #007700">[</span><span style="color: #0000BB">1</span><span style="color: #007700">][</span><span style="color: #0000BB">1</span><span style="color: #007700">] . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
            </div>

            <p class="para">L&#039;exemple ci-dessus va afficher :</p>
            <div class="example-contents screen">
<div class="annotation-interactive parameterscode"><pre class="parameterscode">&lt;b&gt;exemple : &lt;/b&gt;, exemple :
&lt;div align=&quot;left&quot;&gt;ceci est un test&lt;/div&gt;, ceci est un test</pre>
</div>
            </div>
           </div>
          </p>
         </dd>
        
        
         <dt><strong><code><a href="pcre.constants.php#constant.preg-offset-capture">PREG_OFFSET_CAPTURE</a></code></strong></dt>
         <dd>
          <p class="para">
           Si ce drapeau est passé, toutes les sous-chaînes qui satisfont
           le masque seront aussi identifiées par leur offset (en octets).
           Il est à noter que cela modifie la valeur de <code class="parameter">matches</code> en
           un tableau de tableau où chaque élément est un tableau contenant
           la sous-chaîne satisfaite à l&#039;index <code class="literal">0</code> et l&#039;index de
           celle-ci dans la chaîne <code class="parameter">subject</code> à l&#039;index <code class="literal">1</code>.
           <div class="informalexample">
            <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />preg_match_all</span><span style="color: #007700">(</span><span style="color: #DD0000">'/(foo)(bar)(baz)/'</span><span style="color: #007700">, </span><span style="color: #DD0000">'foobarbaz'</span><span style="color: #007700">, </span><span style="color: #0000BB">$matches</span><span style="color: #007700">, </span><span style="color: #0000BB">PREG_OFFSET_CAPTURE</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$matches</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
            </div>

            <p class="para">L&#039;exemple ci-dessus va afficher :</p>
            <div class="example-contents screen">
<div class="annotation-interactive parameterscode"><pre class="parameterscode">Array
(
    [0] =&gt; Array
        (
            [0] =&gt; Array
                (
                    [0] =&gt; foobarbaz
                    [1] =&gt; 0
                )

        )

    [1] =&gt; Array
        (
            [0] =&gt; Array
                (
                    [0] =&gt; foo
                    [1] =&gt; 0
                )

        )

    [2] =&gt; Array
        (
            [0] =&gt; Array
                (
                    [0] =&gt; bar
                    [1] =&gt; 3
                )

        )

    [3] =&gt; Array
        (
            [0] =&gt; Array
                (
                    [0] =&gt; baz
                    [1] =&gt; 6
                )

        )

)</pre>
</div>
            </div>
           </div>
          </p>
         </dd>
        
        
         <dt><strong><code><a href="pcre.constants.php#constant.preg-unmatched-as-null">PREG_UNMATCHED_AS_NULL</a></code></strong></dt>
         <dd>
          <p class="para">
           Si ce drapeau est passé, les sous-masques non satisfaits sont rapportés en tant que <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> ;
           sinon ils sont rapportés en tant que <a href="language.types.string.php" class="link">chaîne de caractères</a> vide.
          </p>
         </dd>
        
       </dl>
      </p>
     </dd>
    
    
     <dt><code class="parameter">offset</code></dt>
     <dd>
      <p class="para">
       Normalement, la recherche commence au début de la chaîne
       <code class="parameter">subject</code>. Le paramètre optionnel
       <code class="parameter">offset</code> peut être utilisé pour spécifier
       une position pour le début de la recherche (en octets).
      </p>
      <blockquote class="note"><p><strong class="note">Note</strong>: 
       <p class="para">
        Utiliser le paramètre <code class="parameter">offset</code> ne revient pas
        à passer <code class="code">substr($subject, $offset)</code> à
        <span class="function"><strong>preg_match_all()</strong></span> à la place de la chaîne
        <code class="parameter">subject</code>, car
        <code class="parameter">pattern</code> peut contenir des assertions comme
        <em>^</em>, <em>$</em> ou
        <em>(?&lt;=x)</em>. Consulter la documentation 
        sur la fonction <span class="function"><a href="function.preg-match.php" class="function">preg_match()</a></span> pour des exemples.
       </p>
      </p></blockquote>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.preg-match-all-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Retourne le nombre de résultats qui satisfont le masque
   complet, ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si une erreur survient.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.preg-match-all-errors">
  <h3 class="title">Erreurs / Exceptions</h3>
  <p class="para">
Si le masque regex passé ne compile pas à une regex valide, une <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> est émise.
</p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.preg-match-all-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>7.2.0</td>
       <td>
        <strong><code><a href="pcre.constants.php#constant.preg-unmatched-as-null">PREG_UNMATCHED_AS_NULL</a></code></strong> est maintenant supporté pour le
        paramètre <code class="parameter">$flags</code>.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.preg-match-all-examples">
  <h3 class="title">Exemples</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Exemple #1 Extraction de tous les numéros de téléphone d&#039;un texte</strong></p>
    <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />preg_match_all</span><span style="color: #007700">(</span><span style="color: #DD0000">"/\(?  (\d{3})?  \)?  (?(1)  [\-\s] ) \d{3}-\d{4}/x"</span><span style="color: #007700">,<br />                </span><span style="color: #DD0000">"Call 555-1212 or 1-800-555-1212"</span><span style="color: #007700">, </span><span style="color: #0000BB">$phones</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
  <p class="para">
   <div class="example" id="example-2">
    <p><strong>Exemple #2 Recherche les couples de balises HTML (gourmand)</strong></p>
    <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">// Cet exemple utilise les références arrières (\\2).<br />// Elles indiquent à l'analyseur qu'il doit trouver quelque chose qu'il<br />// a déjà repéré un peu plus tôt<br />// le nombre 2 indique que c'est le deuxième jeu de parenthèses<br />// capturante qui doit être utilisé (ici, ([\w]+)).<br />// L'antislash est nécessaire ici, car la chaîne est entre guillemets doubles<br /><br /></span><span style="color: #0000BB">$html </span><span style="color: #007700">= </span><span style="color: #DD0000">"&lt;b&gt;texte en gras&lt;/b&gt;&lt;a href=howdy.html&gt;cliquez moi&lt;/a&gt;"</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">preg_match_all</span><span style="color: #007700">(</span><span style="color: #DD0000">"/(&lt;([\w]+)[^&gt;]*&gt;)(.*?)(&lt;\/\\2&gt;)/"</span><span style="color: #007700">, </span><span style="color: #0000BB">$html</span><span style="color: #007700">, </span><span style="color: #0000BB">$matches</span><span style="color: #007700">, </span><span style="color: #0000BB">PREG_SET_ORDER</span><span style="color: #007700">);<br /><br />foreach (</span><span style="color: #0000BB">$matches </span><span style="color: #007700">as </span><span style="color: #0000BB">$val</span><span style="color: #007700">) {<br />    echo </span><span style="color: #DD0000">"matched: " </span><span style="color: #007700">. </span><span style="color: #0000BB">$val</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">] . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br />    echo </span><span style="color: #DD0000">"part 1: " </span><span style="color: #007700">. </span><span style="color: #0000BB">$val</span><span style="color: #007700">[</span><span style="color: #0000BB">1</span><span style="color: #007700">] . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br />    echo </span><span style="color: #DD0000">"part 2: " </span><span style="color: #007700">. </span><span style="color: #0000BB">$val</span><span style="color: #007700">[</span><span style="color: #0000BB">2</span><span style="color: #007700">] . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br />    echo </span><span style="color: #DD0000">"part 3: " </span><span style="color: #007700">. </span><span style="color: #0000BB">$val</span><span style="color: #007700">[</span><span style="color: #0000BB">3</span><span style="color: #007700">] . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br />    echo </span><span style="color: #DD0000">"part 4: " </span><span style="color: #007700">. </span><span style="color: #0000BB">$val</span><span style="color: #007700">[</span><span style="color: #0000BB">4</span><span style="color: #007700">] . </span><span style="color: #DD0000">"\n\n"</span><span style="color: #007700">;<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>L&#039;exemple ci-dessus va afficher :</p></div>
    <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">matched: &lt;b&gt;texte en gras&lt;/b&gt;
part 1: &lt;b&gt;
part 2: b
part 3: texte en gras
part 4: &lt;/b&gt;

matched: &lt;a href=howdy.html&gt;cliquez moi&lt;/a&gt;
part 1: &lt;a href=howdy.html&gt;
part 2: a
part 3: cliquez moi
part 4: &lt;/a&gt;</pre>
</div>
    </div>
   </div>
  </p>
  <p class="para">
   <div class="example" id="example-3">
    <p><strong>Exemple #3 Utilisation d&#039;un sous-masque nommé</strong></p>
    <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br />$str </span><span style="color: #007700">= &lt;&lt;&lt;FOO<br /></span><span style="color: #DD0000">a: 1<br />b: 2<br />c: 3<br /></span><span style="color: #007700">FOO;<br /><br /></span><span style="color: #0000BB">preg_match_all</span><span style="color: #007700">(</span><span style="color: #DD0000">'/(?P&lt;name&gt;\w+): (?P&lt;digit&gt;\d+)/'</span><span style="color: #007700">, </span><span style="color: #0000BB">$str</span><span style="color: #007700">, </span><span style="color: #0000BB">$matches</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/* Alternative */<br />// preg_match_all('/(?&lt;name&gt;\w+): (?&lt;digit&gt;\d+)/', $str, $matches);<br /><br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$matches</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>L&#039;exemple ci-dessus va afficher :</p></div>
    <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">Array
(
    [0] =&gt; Array
        (
            [0] =&gt; a: 1
            [1] =&gt; b: 2
            [2] =&gt; c: 3
        )

    [name] =&gt; Array
        (
            [0] =&gt; a
            [1] =&gt; b
            [2] =&gt; c
        )

    [1] =&gt; Array
        (
            [0] =&gt; a
            [1] =&gt; b
            [2] =&gt; c
        )

    [digit] =&gt; Array
        (
            [0] =&gt; 1
            [1] =&gt; 2
            [2] =&gt; 3
        )

    [2] =&gt; Array
        (
            [0] =&gt; 1
            [1] =&gt; 2
            [2] =&gt; 3
        )

)</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.preg-match-all-seealso">
  <h3 class="title">Voir aussi</h3>
  <p class="para">
   <ul class="simplelist">
    <li><a href="pcre.pattern.php" class="link">Masques PCRE</a></li>
    <li><span class="function"><a href="function.preg-quote.php" class="function" rel="rdfs-seeAlso">preg_quote()</a> - Protection des caract&egrave;res sp&eacute;ciaux des expressions r&eacute;guli&egrave;res</span></li>
    <li><span class="function"><a href="function.preg-match.php" class="function" rel="rdfs-seeAlso">preg_match()</a> - Effectue une recherche de correspondance avec une expression rationnelle standard</span></li>
    <li><span class="function"><a href="function.preg-replace.php" class="function" rel="rdfs-seeAlso">preg_replace()</a> - Rechercher et remplacer par expression rationnelle standard</span></li>
    <li><span class="function"><a href="function.preg-split.php" class="function" rel="rdfs-seeAlso">preg_split()</a> - &Eacute;clate une cha&icirc;ne par expression rationnelle</span></li>
    <li><span class="function"><a href="function.preg-last-error.php" class="function" rel="rdfs-seeAlso">preg_last_error()</a> - Retourne le code erreur de la derni&egrave;re expression PCRE ex&eacute;cut&eacute;e</span></li>
   </ul>
  </p>
 </div>


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