📜  laravel 收集时间 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:46.857000             🧑  作者: Mango

代码示例1
$collection = Collection::times(10, function ($number) {
    return $number * 9;
});

$collection->all();

// [9, 18, 27, 36, 45, 54, 63, 72, 81, 90]