Array(
[Open+Sans] => Array
(
[0] => normal
[1] => lightitalic
[2] => light
[3] => semibold
)
[Nova+Script] => Array
(
[0] => normal
)
[Nova+Slim] => Array
(
[0] => normal
)
[Old+Standard+TT] => Array
(
[0] => normal
)
)
我希望键被内爆和子数组被逗号破坏,最终预期的字符串如下所示:
Open + Sans:正常,轻盈,轻盈,半哑| Nova +脚本:正常| Nova + Slim:正常|老+标准+ TT:正常
谢谢你的时间..答案 0 :(得分:1)
我猜这应该有用
$output;
foreach($input_array as $k => $v){
output.= $k.":";
output.= implode(",",$v);
output.= "|";
}