title: PHP Is there any better way to create this new array?
body: <pre><code>  for ($i = 0; $i &lt; count($keyListArray); $i++) {
        $newArray[$i] = $myArray[$keyListArray[$i]];
    }
  
  //structure of arrays are as follows  
  //$keyListArray = array (1,4,5);  
  //$myArray = array(1=&gt;array('hello', 4, 56, 7))
  </code></pre>