array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.stripcslashes.php', 1 => 'stripcslashes', ), 'up' => array ( 0 => 'ref.strings.php', 1 => 'String 関数', ), 'prev' => array ( 0 => 'function.strip-tags.php', 1 => 'strip_tags', ), 'next' => array ( 0 => 'function.stripos.php', 1 => 'stripos', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/strings/functions/stripcslashes.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
バックスラッシュを取り除いた文字列を返します。C言語と同様に
\n
, \r
..., 8進表現, 16進表現を認識します。
string
元に戻したい文字列。
元に戻した文字列を返します。
例1 stripcslashes() の例
<?php
var_dump(stripcslashes('I\'d have a coffee.\nNot a problem.') === "I'd have a coffee.
Not a problem."); // true
?>