var str = '';
If there is no `"'"` in `$v`, it'll just be fine.
But in case there is `"'"` in `$v`, obviously error will be reported.
So far I've only used `mysql_real_escape`, which is not applicable now.
以上就是How to escape only "'" in PHP?的详细内容，更多请关注web前端其它相关文章！