最好的管理方法是:
$in = implode("','",$ids); // generate like 1','2$query = "SELECt * FROM user where user_id IN ('$in') "; // if has 1','2 surrond it with quote make it IN('1','2') and if empty than IN('')这样可以避免您使用if / else结构和其他所有内容

最好的管理方法是:
$in = implode("','",$ids); // generate like 1','2$query = "SELECt * FROM user where user_id IN ('$in') "; // if has 1','2 surrond it with quote make it IN('1','2') and if empty than IN('')这样可以避免您使用if / else结构和其他所有内容