How to split a string into individual characters using PHP?
January 17, 2011 at 1:29 pm Leave a comment
In one of our php project, we had to split a string into individual characters. I thought there should be some built-in function for doing this. But I couldn’t find the appropriate build-in php function.
Currently we are using below code snippet for doing this split..
for($i=0;$i< strlen($inputstring);$i++){
$letterarray[]=$inputstring[$i];
}
You can let me know thro’ the comments if you know any suitable function for doing this task.
Entry filed under: Software. Tags: .

Trackback this post | Subscribe to the comments via RSS Feed