php convert array string by space code example
Example 1: php explode
$colors = "red,blue,green,orange";
$colorsArray = explode(",", $colors);
Example 2: string to array php
str_split ( string $string [, int $split_length = 1 ] ) : array
$colors = "red,blue,green,orange";
$colorsArray = explode(",", $colors);
str_split ( string $string [, int $split_length = 1 ] ) : array