<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.strings.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.stripcslashes.php',
    1 => 'stripcslashes',
    2 => 'D&eacute;code une cha&icirc;ne encod&eacute;e avec addcslashes',
  ),
  'up' => 
  array (
    0 => 'ref.strings.php',
    1 => 'Fonctions sur les cha&icirc;nes de caract&egrave;res',
  ),
  'prev' => 
  array (
    0 => 'function.strip-tags.php',
    1 => 'strip_tags',
  ),
  'next' => 
  array (
    0 => 'function.stripos.php',
    1 => 'stripos',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/strings/functions/stripcslashes.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.stripcslashes" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">stripcslashes</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">stripcslashes</span> &mdash; <span class="dc-title">Décode une chaîne encodée avec <span class="function"><a href="function.addcslashes.php" class="function">addcslashes()</a></span></span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.stripcslashes-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>stripcslashes</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$string</code></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   Retourne la chaîne <code class="parameter">str</code>
   après avoir supprimé tous les antislashs. <span class="function"><strong>stripcslashes()</strong></span>
   respecte les séquences spéciales du C, telles que <code class="literal">\n</code>,
   <code class="literal">\r</code>..., les nombres octaux et hexadécimaux.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.stripcslashes-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">string</code></dt>
     <dd>
      <p class="para">
       La chaîne à traiter.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.stripcslashes-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Retourne la chaîne modifiée.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.stripcslashes-examples">
  <h3 class="title">Exemples</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Exemple #1 Exemple avec <span class="function"><strong>stripcslashes()</strong></span></strong></p>
    <div class="example-contents">
     <div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /> <br />var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">stripcslashes</span><span style="color: #007700">(</span><span style="color: #DD0000">'I\'d have a coffee.\nNot a problem.'</span><span style="color: #007700">) === </span><span style="color: #DD0000">"I'd have a coffee.<br />Not a problem."</span><span style="color: #007700">); </span><span style="color: #FF8000">// true<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

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


 <div class="refsect1 seealso" id="refsect1-function.stripcslashes-seealso">
  <h3 class="title">Voir aussi</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.addcslashes.php" class="function" rel="rdfs-seeAlso">addcslashes()</a> - Ajoute des slash dans une cha&icirc;ne, &agrave; la mode du langage C</span></li>
   </ul>
  </p>
 </div>


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