Answers for "php how to split a string when i see any letter"

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
5

php split string

explode(" ","Geeks for Geeks")
Posted by: Guest on April-02-2020

Code answers related to "php how to split a string when i see any letter"

Browse Popular Code Answers by Language