🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
* 防SQL注入 | 传入参 | 说明 | | --- | --- | | type | [ 必填 ] 校对类型 (get , post , cookie) | | sql | [ 必填 ] 校对字符串 | | 回调参 | 说明 | | --- | --- | | [ bool ] | 校验结果 (1存在风险 0没有风险) | * 案例 ~~~ $back = $D_P->safe('get','aaa'); $back = $D_P->safe('get','select * from abc'); $back = $D_P->safe('post','select * from abc'); $back = $D_P->safe('cookie','select * from abc'); ~~~ >0 >1 >1 >1