php exlpode $obj[0] code example Example: php explode $colors = "red,blue,green,orange"; $colorsArray = explode(",", $colors);