title: How to access a member of an stdClass in PHP that starts with an @
body: <p>I have some json object that I decoded, and one of the attributes starts with an "@" and I can't access the element with php because it throws an error.</p>
  
  <pre><code>                    [offers] =&gt; stdClass Object
                      (
                          [@attributes] =&gt; stdClass Object
                              (
                                  [id] =&gt; levaka0B8a
                              )
                      )
  </code></pre>
  
  <p>How would I go about accessing attributes?</p>