without using explode in php make string to array code example Example: string to array in php print_r(explode(',',$yourstring));