title: How get properties from object named '0'
body: <p>I have that code</p>
  
  <pre><code>$names=array('name1'=&gt;'John','Bill');
  $names = (object)$names;
  </code></pre>
  
  <p>If I want get name John, I do :</p>
  
  <pre><code>$names-&gt;name1;
  </code></pre>
  
  <p>But, How can I get name 'Bill' ?</p>