title: PHP stdClass Object with dot
body: <p>I have a stdClass, that has an attribute with a dot in it's name. It's returned to me via an API, so there's nothing I can do with the name.
  It looks like this:</p>
  
  <pre><code>stdClass Object ( [GetPlayerResult] =&gt; stdClass Object ( [RegistrationResponses.Player] =&gt; Array (...)
  </code></pre>
  
  <p>Now, how do I access the array? When I do this:</p>
  
  <pre><code>print_r($result-&gt;GetPlayerResult-&gt;RegistrationResponses.Player);
  </code></pre>
  
  <p>it (obviously) prints just "Player". I have tried putting apostrophes around the last part, using [''] syntax (like an associative array), none of that works and throws a 500 error.
  Any ideas?
  Thanks!</p>