阅读背景:

删除PHP数组中的逗号以进行JSON格式化

来源:互联网 

I'm outputting a json formatted array. Where I have the address fields and Market fields separated by commas I want to remove commas if a field doesn't exist so I don't end up with empty spaces with commas. I had a go below with implode but that doesn't seem to work... what is the correct way of doing this?I'm outputting a json formatted array. Where I




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: