title: PHP colon in property name
body: <p>I have a variable $entry which is set to:</p>
  
  <blockquote>
    <p>stdClass Object (
        [im:name] => stdClass Object
            (
                [label] => Amazing Breaker
            )
    etc.</p>
  </blockquote>
  
  <p>How can I access the value "Amazing Breaker"?</p>
  
  <p>I tried to define a constant:</p>
  
  <pre><code>define("IMNAME", 'im:name');
  </code></pre>
  
  <p>but using:</p>
  
  <pre><code>foreach ($json_output-&gt;feed-&gt;entry as $entry) {
  if (isset($entry-&gt;IMNAME-&gt;label))
  </code></pre>
  
  <p>returns FALSE.</p>
  
  <p>Problem seems to be the colon. For a key without colon the code would return TRUE.</p>