我正在处理一个数组,该数组有时具有多维数组。我正在尝试将此数组转换为单个线性数组。Array( [0] => Array ( [attribute_code] => 203 [attribute_value] => Array ( [0] => 24214 ) ) [1] => Array ( [attribute_code] => 252 [attribute_value] => Array ( [0] => 22865 [1] => 25086 ) ))这就是我正在努力实现的目标Array( [0] => {"attribute_code":"203","attribute_value":"24214"} [1] => {"attribute_code":"252","attribute_value":["22865","25086"]})实现这一目标的最佳方法是什么?
- 1 回答
- 0 关注
- 79 浏览
添加回答
举报
0/150
提交
取消