Answers for "php go through every character in a string"

PHP
3

php foreach string char

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

//Loop each char
foreach($chars as $char)
{
    // your code
}
Posted by: Guest on March-23-2020

Code answers related to "php go through every character in a string"

Browse Popular Code Answers by Language