array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'function.stripcslashes.php', 1 => 'stripcslashes', ), 'up' => array ( 0 => 'ref.strings.php', 1 => 'Funções de String', ), 'prev' => array ( 0 => 'function.strip-tags.php', 1 => 'strip_tags', ), 'next' => array ( 0 => 'function.stripos.php', 1 => 'stripos', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'pt_BR', 'path' => 'reference/strings/functions/stripcslashes.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
stripcslashes — Remove o escape de strings escapadas com addcslashes()
Retorna uma string com as barras invertidas retiradas. Reconhece
represenações no estilo C \n
, \r
..., octais
e hexadecimais.
string
A string para remover os escapes.
Retorna a string com escapes retirados.
Exemplo #1 Exemplo de stripcslashes()
<?php
var_dump(stripcslashes('I\'d have a coffee.\nNot a problem.') === "I'd have a coffee.
Not a problem."); // verdadeiro
?>