One of my functions is returning json encoded content using:
return json_encode($json, true);
Now in my code, calling this function I've already tried to use:
die(var_dump($result[0]));
die(var_dump($result["user"]));
die(var_dump($result->user));
None of this worked. When I dump the whole content I get returned, this is the output:
{"usd":1,"user":10000}
die(var_dump($result));alone and see what happens?json_encode()'s return value is a string, right?json_decode?