I need to know how I can find the three greatest numbers of an array. Currently I can only find the greatest number of an array, but I want to have the three greatest of it:
$avg = array();
$avg[20,10,30,50,80,90,220];
echo max($avg);
Maybe you can help me by this?