字串函式庫 AddSlashes (PHP3 , PHP4) AddSlashes --- 將字串加上反斜線 語法 : string addslashes (string str) 說明 : 將需要引用在資料庫查詢等等中的字元前面加上反斜線,傳回加上反斜線的字串,這些字元有單引號(')、雙引號( " )、斜線( \ )及NULL(null byte)。 參考 : stripslashes( ) htmlspecialchars( ) quotemeta( ) 上一頁 首頁 下一頁
字串函式庫
AddSlashes
(PHP3 , PHP4)
AddSlashes --- 將字串加上反斜線
語法 : string addslashes (string str)
string addslashes (string str)
string addslashes
說明 :
將需要引用在資料庫查詢等等中的字元前面加上反斜線,傳回加上反斜線的字串,這些字元有單引號(')、雙引號( " )、斜線( \ )及NULL(null byte)。
參考 : stripslashes( ) htmlspecialchars( ) quotemeta( )