This function lets you store / add slashes in a database to characters that will cause problems when stored i.e. speechmarks, & signs etc.
Useful for saving mysql statements.
1 2 3 4 5 6 |
<?php $str = addslashes('What does "codehaven" mean?'); echo($str); ?> |