Php Array Functions
PHP Array CountPhp File Functions
PHP File RenameThe addslashes() function is used to add backslashes in the sentances from predefined character .
Type sentance at textarea like this : 'Cascading Style Sheets (CSS) are the saviors of responsible web design'..
If you need to add slashes for a single quote (') or double quote (") following code useful to you.
In the above code is used to slashes for a single quote (') .The sentence will pass to the addslashes() function.Finally output will display like "\'Cascading Style Sheets (CSS) are the saviors of responsible web design\'".In the addslashes() function have one parameters that name is string str.
If you need addslashes() function demo code download from following link.
|
Tweet |
|
|