💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
``` 把数组分割为带有两个元素的数组: $cars=array("Volvo","BMW","Toyota","Honda","Mercedes","Opel"); print_r(array_chunk($cars,2)); $age=array("Bill"=>"60","Steve"=>"56","Mark"=>"31","David"=>"35"); print_r(array_chunk($age,2,true)); 带true不删掉键 不带true 删除键键为0 ```