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