String Escape « String « PHP






1.To embed a single quote in a singly quoted string, escape it with a backslash
2.addslashes(): escapes quotes, double quotes, backslashes, and NULLs with backslashes
3.quotemeta(): escapes \ + * ? [ ^ ] ( $ )
4.String SQL command escape