<?php$array = array(16.22, 11.26, 1.56, 12, 8.33, 9.18, 6.19, 0, 13.21, 7.58, 10);arsort($array);var_dump($array);
Standard input is empty
array(11) { [0]=> float(16.22) [8]=> float(13.21) [3]=> int(12) [1]=> float(11.26) [10]=> int(10) [5]=> float(9.18) [4]=> float(8.33) [9]=> float(7.58) [6]=> float(6.19) [2]=> float(1.56) [7]=> int(0) }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!