简单教程
提交运行
代码编辑器:
<?php $str = "Who's Peter Griffin?"; echo $str . " This is not safe in a database query.<br>"; echo addslashes($str) . " This is safe in a database query.";
运行结果: