php foreach string char
snippet in php

php foreach string char

user1803

//Split int char array
$chars = str_split($str);

//Loop each char
foreach($chars as $char)
{
    // your code
}