今天用了stripslashes指令,但是怎麼用,就是有1組反斜線去不掉,最後我回到php官網,看到了一個涵式的用法,試了之後,可以達成我要的功能,我覺得還不錯用,寫來一下Memo。
function stripslashes_deep($value)
{
$value = is_array($value) ?
array_map('stripslashes_deep', $value) :
stripslashes($value);
return $value;
}
呼叫更簡單
$abc=stripslashes_deep(原字串);
隨機文章
- html5 與mp4 影片檔案編碼 (2014-03-21)
- phpmailer pop before smtp 測試失敗 (2009-01-13)
- 台新銀行 信用卡服務 人員足夠嗎? (2017-02-03)
- Broadcom Netxtreme II在CentOS 5.1安裝 (2008-05-29)
- 蘋果電腦標錯價之我思 (2010-07-23)








