This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
final class JsonUtils | |
{ | |
/** | |
* Input an object, returns a json-ized string of said object, pretty-printed | |
* | |
* @param (mixed) $obj: The array or object to encode | |
* @param (int) $indentation: The number of "in front" blanks (difference between levels) | |
* @param (int) $level: shouldn't be set, define the first level of "blanks" | |
* @return string JSON formatted output |