How To Pretty Print JSON in PHP

Author: , June 11th, 2020

If you ever want to view your JSON as a human ;-} $pretty_json = json_encode($data, JSON_PRETTY_PRINT); https://www.php.net/manual/en/function.json-encode.php

How To Merge Object Variables in PHP

Author: , June 11th, 2020

$merged_object = (object) array_merge((array) $object1, (array) $object2);