企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## keys方法 返回集合的所有键 ~~~ $collection = collect([ 'prod-100' => ['product_id' => 'prod-100', 'name' => 'Desk'], 'prod-200' => ['product_id' => 'prod-200', 'name' => 'Chair'], ]); $keys = $collection->keys(); $keys->all(); // ['prod-100', 'prod-200'] ~~~