<?php $number = array(1,6,7,8,3,9,4,2,5,10); sort($number); echo "Following is the sorted array: $number <br>"; ?>