php display json in browser

36

header('Content-Type: application/json');
<?php
...
$json_string = json_encode($data, JSON_PRETTY_PRINT);

Comments

Submit
0 Comments