3 ms·
Yes a million times this. This becomes a even bigger problem with json_encode when PHP can't tell the difference between an object and array sometimes and outp
by superasn 6y ago
Yes a million times this. This becomes a even bigger problem with json_encode when PHP can't tell the difference between an object and array sometimes and outputs the wrong type. Yes you can use stdClass but that feels like such a hack. It would have been amazing if they were different types all along.