扫码关注官方订阅号
众所周知可以用[array componentsJoinedByString:@","];来把字符串数组拼成字符串,如果数组里面是个object,想把object的一个property组成字符串呢?
[array componentsJoinedByString:@","];
闭关修行中......
把Object里面的property都拿到数组里面,然后执行componentsJoinedByString:
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
把Object里面的property都拿到数组里面,然后执行componentsJoinedByString: