📅  最后修改于: 2022-03-11 14:53:40.377000             🧑  作者: Mango
代码示例2
$neededObject = array_filter(
$arrayOfObjects,
function ($e) use (&$searchedValue) {
return $e->id == $searchedValue;
}
);