阅读(181)
赞(8)
Laravel 8 head() {#collection-method}
2021-07-03 15:41:00 更新
head
函数将返回数组中的第一个值:
$array = [100, 200, 300];
$first = head($array);
// 100
head
函数将返回数组中的第一个值:
$array = [100, 200, 300];
$first = head($array);
// 100
Copyright©2023 编程论坛编程论坛| 浙ICP备2024059924号-1|
违法和不良信息举报电话:|举报邮箱:569242693@qq.com