Name

addslashes

Synopsis

string addslashes(string string)

Returns escaped characters in string that have special meaning in SQL database queries. Single quotes (''), double quotes (""), backslashes (\), and the NUL-byte (\0) are escaped. The stripslashes() function is the inverse for this function.

Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.