阅读(3810)
赞(9)
Laravel 8 Arr::shuffle() {#collection-method}
2021-07-03 15:40:59 更新
Arr::shuffle
函数将数组中值进行随机排序:
use IlluminateSupportArr;
$array = Arr::shuffle([1, 2, 3, 4, 5]);
// [3, 2, 5, 1, 4] - (generated randomly)
Arr::shuffle
函数将数组中值进行随机排序:
use IlluminateSupportArr;
$array = Arr::shuffle([1, 2, 3, 4, 5]);
// [3, 2, 5, 1, 4] - (generated randomly)
Copyright©2023 字节宝| |
违法和不良信息举报电话:|举报邮箱:2283035678@qq.com