title: select only one attribute from php multidimensional array?
body: <p>Supposedly I have an array like this:</p>
  
  <pre><code>$shop = array( array("name"=&gt;"Tom", "level"=&gt; 1.25 ),
                 array("name"=&gt;"Mike","level"=&gt; 0.75 ),
                 array("name"=&gt;"John","level"=&gt; 1.15 ) 
               ); 
  </code></pre>
  
  <p>How do I make an array  with all name values and the keys being the position of theri original array. I know I could iterate through, and put in another array, but are there any functions? </p>
  
  <p>Sorry if I was confusing. My desired output would be:</p>
  
  <pre><code>array(0=&gt;"Tom",1=&gt;"Mike",2=&gt;"John");
  </code></pre>
  
  <p>So basicaly what select does in sql.</p>