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