title: access value from nested object in php
body: <p>i have an object and i cant get the values :(</p>
  
  <p>how in the world can i access the value "x" and "y" and get them into a variable?</p>
  
  <p>this is crazy </p>
  
  <p>var_dump shows me this:</p>
  
  <pre><code>object(Elliptic\EC\KeyPair)#1201 (2) {
    ["priv"]=&gt;
    NULL
    ["pub"]=&gt;
    object(Elliptic\Curve\ShortCurve\Point)#1206 (1) {
      ["EC Point"]=&gt;
      array(2) {
        ["x"]=&gt;
        string(64) "6f713d7037b148ad4027392aa5b27c575d3669f3691aba2a7cd91de5e616a448"
        ["y"]=&gt;
        string(64) "34f4f38690796615e7bb70fb94cbc3db43d08a64bb9e5a24ac15afc92d148d8e"
      }
    }
  }
  </code></pre>
  
  <p>print_r shows it like this</p>
  
  <pre><code>Elliptic\EC\KeyPair Object
  (
      [priv] =&gt; 
      [pub] =&gt; Elliptic\Curve\ShortCurve\Point Object
          (
              [EC Point] =&gt; Array
                  (
                      [x] =&gt; 6f713d7037b148ad4027392aa5b27c575d3669f3691aba2a7cd91de5e616a448
                      [y] =&gt; 34f4f38690796615e7bb70fb94cbc3db43d08a64bb9e5a24ac15afc92d148d8e
                  )
  
          )
  
  )
  </code></pre>
  
  <p>thanks for any directions.</p>