PHP,
pasted
on Jul 27:
|
<p>
<?php
$the_array = array(5,3,7,1);
sort($the_array);
echo join(", ",$the_array);
?>
</p>
<p>
<?php
$the_array = array(5,3,7,1);
rsort($the_array);
echo join(", ",$the_array);
?>
</p>
|
Output:
|
<p>
1, 3, 5, 7</p>
<p>
7, 5, 3, 1</p>
|
|