close
語法如下:
<?php $arr = [ 'a' => 1, 'b' => 2, 'c' => [ 'd' => 3, 'e' => 44 ] ]; echo json_encode($arr, JSON_PRETTY_PRINT); /* output: { "a": 1, "b": 2, "c": { "d": 3, "e": 44 } } */
全站熱搜
語法如下:
<?php $arr = [ 'a' => 1, 'b' => 2, 'c' => [ 'd' => 3, 'e' => 44 ] ]; echo json_encode($arr, JSON_PRETTY_PRINT); /* output: { "a": 1, "b": 2, "c": { "d": 3, "e": 44 } } */
留言列表