I'm a little stuck on trying to figure this one out, I think I understand the principles but just a little lost on the execution. Say we have:
$string = "Blue, Red, Yellow";
Which is a string read in from a DB (it includes the commas). Basically what I'm trying to do break these words apart and store them separately in an array (easier to work with). Will something like this work:
$string_parts = explode(",",$string);
Is it as easy as this, or is there a better way?
print_r( $string_parts );to see the results.