Answers for "explode a word into letters array in php"

PHP
3

php split string into array of characters

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

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

php explode sentence into words

$words = explode(" ", $sentence);
Posted by: Guest on February-12-2021

Browse Popular Code Answers by Language