json pretty print php code example
Example 1: php pretty print
print("<pre>".print_r($array_data,true)."</pre>");
Example 2: php json pretty print
$json_string = json_encode($data, JSON_PRETTY_PRINT);
print("<pre>".print_r($array_data,true)."</pre>");
$json_string = json_encode($data, JSON_PRETTY_PRINT);