Answers for "split string into array by charachter 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
-2

how to split string into array php

string = ".hidden_file"
str_split(string); //split char by char
Posted by: Guest on June-03-2021

Code answers related to "split string into array by charachter php"

Browse Popular Code Answers by Language