- 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));
var_dump(json_decode('[{\"code\":\"download\",\"type\":1000,\"message\":\"hello\"}]', true));