array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.stripcslashes.php', 1 => 'stripcslashes', ), 'up' => array ( 0 => 'ref.strings.php', 1 => 'String-Funktionen', ), 'prev' => array ( 0 => 'function.strip-tags.php', 1 => 'strip_tags', ), 'next' => array ( 0 => 'function.stripos.php', 1 => 'stripos', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'de', '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 — Demaskiert einen mit addcslashes() maskierten String
Gibt einen String zurück, aus dem die Backslashes ("\") entfernt wurden.
Wie in C werden \n
, \r
..., Oktal-
und Hexadezimal-Darstellungen erkannt.
string
Die zu demaskierende Zeichenkette.
Gibt die demaskierte Zeichenkette zurück.
Beispiel #1 stripcslashes()-Beispiel
<?php
var_dump(stripcslashes('I\'d have a coffee.\nNot a problem.') === "I'd have a coffee.
Not a problem."); // true
?>