function maxnum($nums) {
    usort($nums,  function ($x, $y) { return strcmp(, ); });
    return implode('', $nums);
}

echo maxnum(array(1, 34, 3, 98, 9, 76, 45, 4)), ;
echo maxnum(array(54, 546, 548, 60)), ;