On 29.07.2022 16:26, juan carlos morales wrote:
is_json(string $string): bool
json_decode() has $depth argument, I think is_json() probably also should. And I'm not sure about JSON_INVALID_UTF8_IGNORE flag.
My point is that if you use these with json_decode() you might also need to use these with is_json().
On the other hand maybe the function should be as simple as possible, but I'd like it to be considered.
-- Aleksander Machniak Kolab Groupware Developer [https://kolab.org] Roundcube Webmail Developer [https://roundcube.net] ---------------------------------------------------- PGP: 19359DC1 # Blog: https://kolabian.wordpress.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php