php json pretty print
snippet in php

php pretty json encode

user9939

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

php json pretty print

user2749

$json_string = json_encode($data, JSON_PRETTY_PRINT);

pretty print json php

Noob codes official

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