1. Computing
Send to a Friend via Email
Angela Bradley

Addslashes

By February 7, 2013

Follow me on:

The addslashes () function is used to add backslashes into your data before quotes or double quotes.  If you are allowing users to store information in your database it is a good idea to use addslashes to prevent them from being able to use quotes to end your code and insert their own.  Read more.

Comments
February 16, 2013 at 3:48 am
(1) Stefany says:

I thought with the invention of PDO and prepared statement, addslashes() have become obsolete?

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.