- var_dump: documentation ( source)
- json_decode: documentation ( source)
- json_encode: documentation ( source)
<?php
$array = [
[
'code' => 'parse',
'type' => 1000,
'message' => 'hatla',
]
];
var_dump(json_encode($array));
$json = "[{\"code\":\"download\",\"type\":1000,\"message\":\"hello\"}]";
var_dump(json_decode($json, true));