PHP is probably escaping the single quotes for you:

it's -> it\'s

When addslashes() is applied to this, both the backslash character and 
the single quote are escaped:

\ -> \\
' -> \'

The result is what you see:

it\'s -> it\\\'s

If you strip slashes twice, you'll be back to normal.


>>When I use addslashes to add a back slash to a single quote, it returns 3
>>back slashes (example: 'it\\\'s'. Is that correct? Am I doing something

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to