json_encode() returns false
The depth of $array
is definitely greater than 3. Just make depth a larger number.
On a side note, you may also use json_last_error
to see the error message in the case that json_encode fails.
The depth of $array
is definitely greater than 3. Just make depth a larger number.
On a side note, you may also use json_last_error
to see the error message in the case that json_encode fails.