Код: Выделить всё
$colorList[0] = "red";
$colorList[1] = "green";
$colorList[2] = "blue";
$colorList[3] = "black";
$colorList[4] = "white";
Код: Выделить всё
array("red","green","blue","black","white")
Подробнее здесь: https://stackoverflow.com/questions/360 ... exed-array