14 lines
190 B
PHP
14 lines
190 B
PHP
<?php
|
|
$color = array('white', 'green', 'red');
|
|
foreach ($color as $c)
|
|
{
|
|
echo "$c, ";
|
|
}
|
|
sort($color);
|
|
echo "<ul>";
|
|
foreach ($color as $y)
|
|
{
|
|
echo "<li>$y</li>";
|
|
}
|
|
echo "</ul>";
|
|
?>
|