title: how to access object from array that contains colon in it in php
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2991832/php-accessing-namespaced-xml-with-simplexml">PHP: Accessing namespaced XML with SimpleXML</a>  </p>
  </blockquote>
  
  
  
  <p>unable to access the object from this array after parsing <br/></p>
  
  <pre><code>&lt;abc&gt;
  &lt;ls:location&gt;
        &lt;ls:address1&gt;No 16 GLama&lt;/ls:address1&gt;
        &lt;ls:city&gt;Kuala Lumpur&lt;/ls:city&gt;
        &lt;ls:zip&gt;58200&lt;/ls:zip&gt;
        &lt;ls:latitude&gt;3.092055&lt;/ls:latitude&gt;
        &lt;ls:longitude&gt;101.684757&lt;/ls:longitude&gt;
  &lt;/ls:location&gt;
  &lt;/abc&gt;
  </code></pre>
  
  <p><br/>
  how to access to zip object <br/></p>
  
  <pre><code> $x = new SimpleXmlElement($content);
  </code></pre>