title: PHP to AS3 converting (array related)
body: <p>i am trying to convert this into AS3</p>
  
  <pre><code>$display = array();
  $map = array(array(0, 0, 1, 0, 1, 1, 2, 1 ,0) , array(0, 2, 1, 0, 1, 0) ...etc
  foreach ($x as $keyX =&gt; $valX)
  {
      foreach ($y as $keyY =&gt; $valY)
      {
              if (isset($map[$valX][$valY]))
              {
                    $display[$keyX][$keyY] = $map[$valX][$valY];
              }
              else
              {
                   $display[$keyX][$keyY] = "20";
              }
         }
  }
  </code></pre>
  
  <p>then how would i do this from php to as3</p>