今天用了stripslashes指令,但是怎麼用,就是有1組反斜線去不掉,最後我回到php官網,看到了一個涵式的用法,試了之後,可以達成我要的功能,我覺得還不錯用,寫來一下Memo。
function stripslashes_deep($value)
{
$value = is_array($value) ?
array_map('stripslashes_deep', $value) :
stripslashes($value);
return $value;
}
呼叫更簡單
$abc=stripslashes_deep(原字串);
隨機文章
- 永豐銀行Go Life全國加油站聯名卡 嗯~考慮剪卡中 (2013-10-23)
- Google無法連線 (2008-05-29)
- 本周油價(2009/07/24) (2009-07-09)
- 尋找手機鈴聲 (2011-02-05)
- 名牌冤家 Did You Hear About the Morgans? 觀後感 (2010-12-27)




![[chatGPT 測試] 比較Synolgy TrueNAS 和 OpenMediaVault](https://chihping.aflypen.com/wp-content/uploads/2023/03/synolgo_opensource_comparison-300x169.jpg)



![[chatGPT 測試] DSM 7 有什麼特色](https://chihping.aflypen.com/wp-content/uploads/2023/03/usb-ga13f61ece_1280-300x221.jpg)