如何:将 Laravel 集合折叠成逗号分隔的字符串?
dd($ids);
Illuminate\Support\Collection {#538 ▼
#items: array:463 [▼
0 => 30578786410269
1 => 30578326028621
2 => 30788548304669
3 => 30788548607437
4 => 30788592370221
5 => 30788592672989
6 => 30788592975757
7 => 30492511411997
]
}
我如何把它变成一个像这样的字符串?:
30578786410269,30578326028621,30788548304669,30788548607437,30788592370221,30788592672989,30788592975757,30492511411997
繁星coding
长风秋雁