Answers for "how to explode 2 first chars in string php"

PHP
2

php split string at first space

$array = explode(' ', $string, 2);
Posted by: Guest on May-31-2020
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

Code answers related to "how to explode 2 first chars in string php"

Browse Popular Code Answers by Language