将 ’ 转换 成 \'

echo $a="<b>i'ddfn<b>";

echo addslashes($a);

posted @ 2016-08-22 18:41  贪婪的猫  阅读(180)  评论(0编辑  收藏  举报