How to user PHP addcslashes() Function
Programming | PHP | Thursday, 26 January 2012 10:17
The addcslashes() function returns a string with backslashes in front of the specified characters.
Syntax
Parameter
string is a required. Specifies the string to check
characters is a required. Specifies the characters or range of characters to be affected by addcslashes()
Note: Be careful using addcslashes() on 0, r, n and t. In PHP, \0, \r, \n and \t are predefined escape sequences.
Problem
We will add backslashes to certain characters in a string: add php openinh tag and closing tag to following code,
Solution
| |
|
|
| |






