📅  最后修改于: 2022-03-11 14:48:59.630000             🧑  作者: Mango
$collection = collect(['taylor', 'abigail', null])->map(function($name)
{
return strtoupper($name);
})
->reject(function($name)
{
return empty($name);
});