php explode only for two parts code example
Example 1: php explode
$colors = "red,blue,green,orange";
$colorsArray = explode(",", $colors);
Example 2: explode in php
$str = 'one two three four';
$numbers4 = explode(' ',$str);
$colors = "red,blue,green,orange";
$colorsArray = explode(",", $colors);
$str = 'one two three four';
$numbers4 = explode(' ',$str);