You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
216 B
PHTML
10 lines
216 B
PHTML
5 years ago
|
<?php
|
||
|
$colors = array(
|
||
|
"color1", "color20", "color3", "color2"
|
||
|
);
|
||
|
sort($colors, SORT_NATURAL | SORT_FLAG_CASE);
|
||
|
foreach ($colors as $key => $val) {
|
||
|
echo "Colors[" . $key . "] = " . $val . "\n";
|
||
|
}
|
||
|
?>
|