php intval

get是通过URL传参,容易暴露,容易被sql注入,防止sql注入的方式之一是:加intval($_GET['id']);

 

posted @ 2018-08-13 05:53  许九成  阅读(370)  评论(0编辑  收藏  举报