阅读(2444)
赞(3)
Laravel 8 isEmpty() {#collection-method}
2021-07-01 14:46:24 更新
如果集合为空, isEmpty
方法返回 true
,否则返回 false
:
collect([])->isEmpty();
// true
如果集合为空, isEmpty
方法返回 true
,否则返回 false
:
collect([])->isEmpty();
// true
Copyright©2023 字节宝| |
违法和不良信息举报电话:|举报邮箱:[email protected]