Convert String to Array in PHP

explode(separator,String) is used to convert String to Array in PHP Language string = "Red,Green,Orange"; $array = explode(",",$string); Output will Be like Below array([0]=>Red,[1]=>Green,[2]=