这是我拥有的数组:
Array(
[0] => textfield_1
[1] => ssss
[2] => checkboxgroup_1
[3] => Option 1
[4] => checkboxgroup_1
[5] => Option 2
[6] => checkboxgroup_1
[7] => Option 3
[8] => radiobutton_1
[9] => Option 1
[10] => radiobutton_1
[11] => Option 2
[12] => radiobutton_1
[13] => Option 3
[14] => dropdown_1
[15] => Option 1
[16] => dropdown_1
[17] => Option 2
[18] => dropdown_1
[19] => Option 3
)
我想像下面这样显示它:
Array(
[0] => textfield_1|ssss
[1] => checkboxgroup_1|Option 1,Option 2,Option 3
[2] => radiobutton_1|Option 1,Option 2,Option 3
[3] => dropdown_1|Option 1,Option 2,Option 3
)
任何人都可以提出任何想法吗?
Note:
输出数组是一个新数组......