私は次のJsonを持っています
[response] => stdClass Object
(
[status] => 1
[httpStatus] => 200
[data] => Array
(
[0] => 230
[1] => 1956
[2] => 1958
[3] => 2294
)
応答からデータ配列を取得するにはどうすればよいですか?
私はこれが非常に簡単であることを知っています。
アップデート
これが私のソースコードの一部です
$url = $base . http_build_query( $params );
$result = file_get_contents( $url );
echo '<pre>';
print_r( json_decode( $result ) );
echo '</pre>';
$data = $result->response->data;
print_r($data);