First, please refer to the English addslashes() function, which can achieve the function you want. You should also refer to the magic_quotes_gpc option set in php3.ini.
The function ereg_replace() can achieve the result you want. The method is as follows:
$escaped = ereg_replace("'", "'", $input);
http://www.bkjia.com/PHPjc/632420.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632420.htmlTechArticleFirst of all, please refer to the English addslashes() function, it can achieve the function you want, you should also refer to it The magic_quotes_gpc option set in php3.ini. The function ereg_replace() can achieve what you want...