json_decode to array

前端 未结 12 1345
野的像风
野的像风 2020-11-22 01:31

I am trying to decode a JSON string into an array but i get the following error.

Fatal error: Cannot use object of type stdClass as array in C:\\w

12条回答
  •  伪装坚强ぢ
    2020-11-22 02:01

    in PHP json_decode convert json data into PHP associated array
    For Ex: $php-array= json_decode($json-data, true); print_r($php-array);

提交回复
热议问题