Member
scotty_walker
How to escape quotes in PHP?
darion
@scotty_walker use addslashes() function to escape quotes in PHP, code:
1 2 3 4 5 6
<?php $str = "How to 'escape quotes' in PHP?"; // Output: How to \'escape quotes\' in PHP? echo addslashes($str);