How do you Change Array Index Keys to mysql values
===

I need help working with arrays. I have an array of data from a mysql query.
After printing it in a for loop i get the following array_flip

        Array ( 

       [Duru 60] => 0 
       [Maxwell 50] => 1 
       [Fashanu 70] => 2 
       [Nwankwo 80] => 3 
       [Obi 0] => 4 

       ) 

the array value is a combination of 2 fields name and total score. Now i'v bn through all the array topix and i didnt seem to find any solutions.

What i want to achieve is an array like so

       Array (

       [Duru 60] => 60 
       [Maxwell 50] => 50 
       [Fashanu 70] => 70 
       [Nwankwo 80] => 80 
       [Obi 0] => 0 

       )

What i want to achieve is to change the default array numeric keys (0,1,2,3,4) to total score obtained from the query.

Here is the code that gave the first array block

/////////////php coode begins
        
        $dataA = array();

        foreach($data as $key => $val){
		
	$dataC = $val['lastname']." ".$val['total'];
	array_push($dataA,($dataC));
		
         }
         $dataD = (array_flip($dataA));

         print_r($dataD);
        
/////////////php ends

I would really appreciate the help i get. Thanks G