divide string in php in based on a character code example Example: string to array php str_split ( string $string [, int $split_length = 1 ] ) : array