php json encode indent

Solutions on MaxInterview for php json encode indent by the best coders in the world

showing results for - "php json encode indent"
Simone
04 May 2017
1$person = array( 
2    "name" => "Johny Carson", 
3    "title" => "CTO"
4); 
5$personJSON=json_encode($person);//returns JSON string
Victor
05 Oct 2019
1$pretty=json_encode($foo, JSON_PRETTY_PRINT);