为了账号安全,请及时绑定邮箱和手机立即绑定

数组或Json转换为字符串

数组或Json转换为字符串

PHP
慕运维8079593 2021-05-02 20:27:20
将字符串更改为$string = '[{"name":"jack","address":"who knows"},{"name":"jill","address":"who knows too"}]';$array = json_decode($array,true);但是如果反向将数组更改为字符串怎么办$array = [{"name":"jack","address":"who knows"},{"name":"jill","address":"who knows too"}];$string = $array; // $string is $string like on first example
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 99 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信