This seems like a very simple question, but I just can not figure it out! I have a var_dump from a variable I create which contains a multi-dimensional array. The var_dump is as follows:
array(3) { ["errors"]=> array(1) { [0]=> object(stdClass)#838 (2) { ["code"]=> int(324) ["message"]=> string(80) "Duration too long, maximum:30000, actual:37081 (MediaId: snf:840714426630078465)" } } ["httpstatus"]=> int(400) ["rate"]=> NULL }
What is the code I would use to put the value of key "code" and the value of key "message" in a variable.
I have tried:
$myvar1 = $array[0][1];
$myvar2 = $array[0][2];
But I get "Notice: Undefined offset: 0" every time. Any ideas? Thanks.