I use php code and I have a problem with getting value of an array object. When I use var_dump($arr)
, I get this (the code below is formatted for better readability):
object(League\OAuth2\Client\Provider\GoogleUser)#5 (1) {
["response":protected]=> array(5) {
["emails"]=> array(1) {
[0]=> array(1) {
["value"]=> string(21) "thienlam129@gmail.com"
}
}
["id"]=> string(21) "115281634466837725533"
["displayName"]=> string(18) "thiên lâm trần"
["name"]=> array(2) {
["familyName"]=> string(6) "trần"
["givenName"]=> string(11) "thiên lâm"
}
["image"]=> array(1) {
["url"]=> string(98) "https://lh3.googleusercontent.com/-SpWfKGTcQt8/AAAAAAAAAAI/AAAAAAAAAB8/IlGQQnvy7so/photo.jpg?sz=50"
}
}
}
Please, tell me how to get emails value.