來源:藏色散人 發(fā)布時間:2019-02-23 15:08:07 閱讀量:1001
php stripcslashes函數(shù)表示 反引用一個使用 addcslashes() 轉(zhuǎn)義的字符串。
stripcslashes函數(shù)怎么用?
php stripcslashes()函數(shù) 語法
作用:刪除由 addcslashes() 函數(shù)添加的反斜杠。
語法:
1 |
|
參數(shù):
string 必須,規(guī)定要檢查的字符串。
說明:該函數(shù)可用于清理從數(shù)據(jù)庫中或者從 HTML 表單中取回的數(shù)據(jù)。
php stripcslashes()函數(shù)使用示例1:
1 2 3 |
|
輸出:
1 |
|
php stripcslashes()函數(shù)使用示例2:
1 2 3 |
|
輸出:
1 |
|
本篇文章就是關(guān)于PHP stripcslashes函數(shù)的介紹,希望對需要的朋友有所幫助!