mysql中each( use () {})

查询语句->each(function ($item, $key) use (&$events) {
$events[] = [
"attachment" => $item->screenpath,
"black_url" => $item->blackurl,
"dip" => null
];
});
原文地址:https://www.cnblogs.com/L-moye/p/11157021.html