如何检索JSON的值字符串并在PHP中对其进行内爆?

如何检索JSON的值字符串并在PHP中对其进行内爆?,php,json,Php,Json,我需要检索JSON的“数据”值并将其内爆 MySQL('wave'列) 所以我试着: PHP $json = $row['wave']; $json_array = json_decode($json); $json_wave = implode(',', $json_array->data); 但我得到了这个警告: Warning: implode(): Invalid arguments passed in ... 如何在没有遇到该警告的情况下内爆数据值?其工作原理:@u_mul

我需要检索JSON的“数据”值并将其内爆

MySQL('wave'列)

所以我试着:

PHP

$json = $row['wave'];
$json_array = json_decode($json);
$json_wave = implode(',', $json_array->data);
但我得到了这个警告:

Warning:  implode(): Invalid arguments passed in ...

如何在没有遇到该警告的情况下内爆数据值?

其工作原理:@u_mulder检查此项将在用作数组时出错,OP使用对象数组而不是array@Thamilan事实上,我的示例工作正常,但我从PHP调试中得到了警告消息@u_mulder检查此项将在用作数组时出错,OP使用对象数组而不是array@Thamilan事实上,我的示例工作正常,但我从PHP调试中得到了警告消息。
Warning:  implode(): Invalid arguments passed in ...