Php Display Json In Browser

[Solved] Php Display Json In Browser | Php - Code Explorer | yomemimo.com
Question : php display json in browser

Answered by : borma425

header('Content-Type: application/json');

Source : https://stackoverflow.com/questions/6054033/pretty-printing-json-with-php | Last Update : Sun, 26 Sep 21

Question : php display json in browser

Answered by : borma425

<?php
...
$json_string = json_encode($data, JSON_PRETTY_PRINT);

Source : https://stackoverflow.com/questions/6054033/pretty-printing-json-with-php | Last Update : Sun, 26 Sep 21

Answers related to php display json in browser

Code Explorer Popular Question For Php