php split string with character code example
Example 1: php foreach string char
//Split int char array
$chars = str_split($str);
//Loop each char
foreach($chars as $char)
{
// your code
}
Example 2: character split php
str_split ( string $string [, int $split_length = 1 ] ) : array