title: How do you use a @ symbol in the name of a PHP object
body: <p>I've got an XML file that has the label @attributes for one of the names</p>
  
  <pre><code>SimpleXMLElement Object
  (
      [@attributes] =&gt; Array
          (
              [PART_NUMBER] =&gt; ABC123
  </code></pre>
  
  <p>I want to make a reference to this object like $product->@attributes['part_number'] but of course the @ symbol causes an error.</p>
  
  <p>So how do I reference this item in the object?</p>