I need help to replace MySQL values with array values, something like this:
$mysqlcolor = $myrow[color];
$colors=array('
Green,
Red,
Brown,
Grey,
Blue
');
If $mysqlcolor is "0" I need to replace this with the first value in array = "Green". If $mysqlcolor is "3" I need to replace it with third value in array = "Grey", etc, etc.
$newcolor=$arrayvalue;
echo "$newcolor";
Thanks for help.