<?php $sortnumbers []= 10000; $sortnumbers []= 10; $sortnumbers []= 100; $sortnumbers []= 1000; $sortnumbers []= 1; sort ($sortnumbers); foreach ($sortnumbers as $val) { echo "$val", "\n"; } ?>