Glossary Term
addslashes()
3 tags
1 category
addslashes() — Quote string with slashes.
addslashes() — Returns a string with backslashes added before characters that need to be escaped. These characters are: single quote (‘) double quote (“) backslash () NUL (the NUL byte)
The addslashes is sometimes incorrectly used to try to prevent SQL Injection. Instead, database-specific escaping functions and/or prepared statements should be used.
Inputs: string: The string to be escaped.
Returns: Returns the escaped string.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
