<?php $color = array('white', 'green', 'red'); foreach($color as $c) { echo "$c".","; } $test = sort($color); echo "<ul>"; foreach($test as $t) { echo "<li>$t</li>"; } echo "</ul>";
You have javascript disabled. You will not be able to edit any code.