php separate string by character code example
Example 1: php explode
$colors = "red,blue,green,orange";
$colorsArray = explode(",", $colors);
Example 2: php split string
explode(" ","Geeks for Geeks")
Example 3: character split php
str_split ( string $string [, int $split_length = 1 ] ) : array