i have this array returns from an ajax call. at the moment it is hard coded, it will be dynamic.
$multilinevalues = array(
array( 'x' => "2011 Q1" , 'y' => 3, 'z' => 6 ) ,
array( 'x' => "2011 Q2" , 'y' => 10, 'z' => 1 ) ,
array( 'x' => "2011 Q3" , 'y' => 2 , 'z' => 4) ,
array( 'x' => "2011 Q4" , 'y' => 3 , 'z' => 3) ,
i need to store the "x" key (not its value) in a variable. ( NOT 4 times, but just one).
i need to store the "y" and "z" keys (not the values) in an array ( again NOT 4 times, but only the one iteration). obviously in real data after y and z can be more.
how do i do that? tried many loops and get the keys but i need the x in a variable of its own and the y and z within an array, and just once not all the inner arrays.