作者:林yong珊_450 | 来源:互联网 | 2018-07-17 16:40
跳至
[1]
[全屏预览]
function createlike($a,$b,$c=''){
$d = '';
$e = 'or';
$f = count($a);
for ($i=0; $i <$f; $i++) {
if ($i==$f-1) {
$e = '';}
$d.=($a[$i]." LIKE BINARY '%".$b."%' ".$e." ");
}
return $c.' ( '.$d.' ) ';}
createlike(['platform','Date','Team','addr','IP','domain'],$inf,'id!=0 and ');