ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
# count方法 返回该集合内的项目总数。 ``` $collection = collect([1, 2, 3, 4]); $collection->count(); // 4 ```