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

时间:2017-01-14 14:25:17

标签: php json

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

MySQL ('wave'专栏)

const float scale_cst = 100;
float panx = panorama.cols*angle;
float pany = (panorama.rows-1)*(1-std::log(1+scale_cst*0.70710678118654752440084436210485*radius/panorama.rows)/std::log(1+scale_cst));

所以我试过了:

PHP

{"sample_rate":44100,"samples_per_pixel":4410,"bits":8,"length":2668,"data":[0.13,0.19,0.15,0.11,0.13,0.13,0.24,0.35]}

但我得到了这个警告:

$json = $row['wave'];
$json_array = json_decode($json);
$json_wave = implode(',', $json_array->data);

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

0 个答案:

没有答案