stripcslashes 不僅會略過 C 語言風格的跳脫序列 \a、\b、\f、\n、\r、\t 和 \v,還會將它們轉換為實際的意義。
所以
<?php
stripcslashes('\n') == "\n"; //true;
$str = "we are escaping \r\n"; //we are escaping
?>
字串
要取消跳脫的字串。
返回取消跳脫的字串。
範例 #1 stripcslashes() 範例
<?php
var_dump(stripcslashes('I\'d have a coffee.\nNot a problem.') === "I'd have a coffee.
Not a problem."); // true
?>
stripcslashes 不僅會略過 C 語言風格的跳脫序列 \a、\b、\f、\n、\r、\t 和 \v,還會將它們轉換為實際的意義。
所以
<?php
stripcslashes('\n') == "\n"; //true;
$str = "we are escaping \r\n"; //we are escaping
?>