split elements in an array php code example
Example 1: php explode
$colors = "red,blue,green,orange";
$colorsArray = explode(",", $colors);
Example 2: php split string
explode(" ","Geeks for Geeks")
$colors = "red,blue,green,orange";
$colorsArray = explode(",", $colors);
explode(" ","Geeks for Geeks")