Let's say I've uploaded this string into a database
"Red", "Blue", "Orange", "Green"
Now I've set it into a variable which I call strColorArray:
$strColorArray = '"Red", "Blue", "Orange", "Green"';
I can't seem to get it to work the way I want it to when I put it in an array, I wondering if there is an easy to understand way to fix this.
$strColorArray = '"Red", "Blue", "Orange", "Green"';
$colorArray = array($strColorArray);
echo $colorArray[0];
Currently
echo $colorArray[0]; gives "Red", "Blue", "Orange", "Green"
I would like it to have $colorArray[0] as Red, $colorArray[1] as Blue, and so on.