Supposedly I have an array like this:
$shop = array( array("name"=>"Tom", "level"=> 1.25 ),
array("name"=>"Mike","level"=> 0.75 ),
array("name"=>"John","level"=> 1.15 )
);
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?
Sorry if I was confusing. My desired output would be:
array(0=>"Tom",1=>"Mike",2=>"John");
So basicaly what select does in sql.