title: can i use stdClass like an array?
body: <p>is it possible to make stdClass objects work like a generically indexed array?</p>
  
  <p>i.e.
  $array = Array
  (
  [0] => 120
  [1] => 382
  [2] => 552
  [3] => 595
  [4] => 616
  )</p>
  
  <p>would be constructed like </p>
  
  <pre><code>$a = array();
  $array[] = 120;
  $array[] = 382;
  </code></pre>
  
  <p>etc.</p>
  
  <p>but if i do that with an object it just overwrites itself:</p>
  
  <pre><code>$obj = new stdClass;
  $obj-&gt;a = 120;
  $obj-&gt;a = 382;
  </code></pre>
  
  <p>i know i can change 'a' every time,</p>
  
  <p>sorry if this is a stupid question but it's stumping me for some reason!</p>
  
  <p>Appreciate any help :)</p>
  
  <p>Dan</p>