Lines Matching refs:args
18 * @param mixed $args,... JSON string to parse
24 public static function parse(...$args/* inherit from json_decode */)
27 if (1 === \count($args)) {
28 $args[] = true;
32 $array = \json_decode(...$args);
49 * @param mixed $args,... Target to stringify
55 public static function stringify(...$args/* inherit from json_encode */)
58 isset($args[1]) ? $args[1] |= \JSON_PRESERVE_ZERO_FRACTION : $args[1] = \JSON_PRESERVE_ZERO_FRACTION;
61 $string = \json_encode(...$args);