Hello! There is a problem for which you need a solution. I have a multidimensional array:
["order_1"]=> array(3) { ["name"]=> string(6) "lkmndf" ["desc"]=> string(10) "lnkdlfnslk" ["files"]=> array(2) { [0]=> string(13) "sort-logo.png" [1]=> string(60) "Lalaala.jpg" } } ["order_2"]=> array(3) { ["name"]=> string(19) "lkmnsldnkmflknsldkn" ["desc"]=> string(15) "lkndslfknlskdmn" ["files"]=> array(2) { [0]=> string(12) "IMG_0.JPG" [1]=> string(63) "sort.jpg" } } } It has the key "files" which at the beginning should be combined into a line through "," in "order_1", then in "order_2" and then combined into one separated by a space. And the biggest snag is that these “orders” can be created indefinitely.