时间:2021-07-01 10:21:17 帮助过:15人阅读
$projectcode_array = ["20130719","20130718","20130717"];
通过
function change_to_quotes($str) { return sprintf("'%s'", $str); }$new_projectcode_array = implode(',', array_map('change_to_quotes', $projectcode_array ));$new_projectcode_array="'20130719','20130718','20130717'";
这样
$where['_string']="abc in ($new_projectcode_array)";