<?php$arr[1] = 3;$arr[2] = 19;$arr[3] = 7;$arr[4] = 14;$arr[5] = 11; arsort($arr); var_dump($arr);
Standard input is empty
array(5) { [2]=> int(19) [4]=> int(14) [5]=> int(11) [3]=> int(7) [1]=> int(3) }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!