-1
I have the following result in json:
Array
(
[data] => Array
(
[charges] => Array
(
[0] => Array
(
[code] => 70082972
I’d like to know how I get the element code with php.
I tried to:
echo $data["charges"][0]["code"];
echo $data->charges->code;
But to no avail.
have tried:
echo $data["data"]["charges"][0]["code"];
?– novic
I just tried and it worked. Put as an answer for me to evaluate.
– Léo