title: Problem with dynamically built string indexes
body: <p>I want to dynamically create string indexes, a0,a1,a2... for an array. I can refer to array elements using a formula that returns the indexes, but not when I use strings 'a0', 'a1' etc.</p>
  
  <p>See my code below and corresponding output</p>
  
  <pre><code>$aArray=array(1,2);
  foreach ($aArray as  $iIndx =&gt; $id) {
        echo '\'a'.$iIndx.'\''.' ';
        $aConditions['\'a'.$iIndx.'\''] = $id;
        echo $aConditions['\'a'.$iIndx.'\''].'&lt;BR&gt;';        
  }
  echo $aConditions['a0'].' '.$aConditions['a1'];
  </code></pre>
  
  <p>Running this piece of code results in the following printout:</p>
  
  <p>'a0' 1
    'a1' 2</p>
  
  <p>It shows the indexes looks like a0 and a1, and it clearly works to refer to those indexes (the second echo statement in the foreach loop).</p>
  
  <p>However, the last echo statement does not yield any output. No output at all. </p>
  
  <p>Error log gives this notice:</p>
  
  <p>PHP Notice: Undefined index a0 in..... (referring to the last echo line)</p>
  
  <p>The same message for a1.</p>
  
  <p>So it looks like I build indexes that works, and they look like a0 and a1, but they are obviously something else. My problem is I want to refer to those indexes in a different text string, and then I need a perfect match.</p>