Hi internals,
I'd like to present my RFC for adding the indent parameter to the
json_encode function:
https://wiki.php.net/rfc/json_encode_indentation
The `string|int $indent = 4` parameter adds the ability to specify the
indentation for
the JSON encoder. Amount of spaces can be specified by a number and a
string can be
specified to set a custom indentation like `\t` or whatever.
As this is my first RFC (and contribution) for PHP, I'm all kind of new
to the process, standards, etc.
Please let me know if I could do something better.
Looking forward to feedback/input on the RFC.
--
Kind regards,
Timon de Groot
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php