addcslashes

addcslashes

(PHP 4, PHP 5, PHP 7)

addcslashesQuote string with slashes in a C style

Description

string addcslashes ( string $str , string $charlist )

Returns a string with backslashes before characters that are listed in charlist parameter.

Parameters

str

The string to be escaped.

charlist

A list of characters to be escaped. If 登录查看完整内容