我有$ data作为JSON编码数据,我有这个字符串:
$new_data = "color:'red'";
需要添加到$ data中,以便我可以将其作为json字符串读取.
我怎样才能做到这一点?
php json add new-operator
add ×1
json ×1
new-operator ×1
php ×1