語法如下: <?php $arr = [ 'a' => 1, 'b' => 2, 'c' => [ 'd' => 3, 'e' => 44 ] ]; echo json_encode($arr, JSON_PRETTY_PRINT); /* output: { "a": ...
確定! 回上一頁