문제

I came across this array structure, with a "[data] array" I don't know what it is, and I don't know how to bypass it to print, for example [0]['email']. ['data'][0]['email'] doesn't seem to work either. How can I do this?

Array ( [data] => Array ( [0] => Array ( [email] => xxx@xxx.com ) [1] => Array ( [email] => xxx@xxx.com ) ) ) 
도움이 되었습니까?

해결책

$varname['data'][0]['email'] should work. Don't you forget to address array variable itself?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top