ho un array strutturato così

Codice PHP:
array(1=>array("a" => $a_tot['1'], "b" => $a_perc['1']),
    
2=>array("a" => $a_tot['2'], "b" => $a_perc['2']),
    
3=>array("a" => $a_tot['3'], "b" => $a_perc['3']),
    
4=>array("a" => $a_tot['4'], "b" => $a_perc['4']),
    
5=>array("a" => $a_tot['5'], "b" => $a_perc['5']),
    
6=>array("a" => $a_tot['6'], "b" => $a_perc['6']),
    
7=>array("a" => $a_tot['7'], "b" => $a_perc['7']),
    
8=>array("a" => $a_tot['8'], "b" => $a_perc['8']),
    
9=>array("a" => $a_tot['9'], "b" => $a_perc['9']),
    
10=>array("a" => $a_tot['10'], "b" => $a_perc['10']),
    
11=>array("a" => $a_tot['11'], "b" => $a_perc['11']),
    
12=>array("a" => $a_tot['12'], "b" => $a_perc['12']),
    
13=>array("a" => $a_tot['13'], "b" => $a_perc['13']),
    
14=>array("a" => $a_tot['14'], "b" => $a_perc['14']),
    
15=>array("a" => $a_tot['15'], "b" => $a_perc['15']),
    
16=>array("a" => $a_tot['16'], "b" => $a_perc['16']),
    
17=>array("a" => $a_tot['17'], "b" => $a_perc['17']),
    
18=>array("a" => $a_tot['18'], "b" => $a_perc['18']),
    
19=>array("a" => $a_tot['19'], "b" => $a_perc['19']),
    
20=>array("a" => $a_tot['20'], "b" => $a_perc['20']),
    
21=>array("a" => $a_tot['21'], "b" => $a_perc['21']),
    
22=>array("a" => $a_tot['22'], "b" => $a_perc['22']),
    
23=>array("a" => $a_tot['23'], "b" => $a_perc['23']),
    
24=>array("a" => $a_tot['24'], "b" => $a_perc['24'])); 
dove $a_tot e $a_perc sono valori numerici.
io dovrei trovare qual'è il valore $a_perc piu grande e trovare il valore piu grande trovare il suo numero

esempio

$a_perc piu grande è $a_perc['20'] e il suo numero è 20 (quello all'inizio dell'array) 20=>array("a" => $a_tot['20'], "b" => $a_perc['20']),

come posso fare?