Friday, January 8, 2010

How to split a string into individual characters using PHP?



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.

More Articles...

1 comments:

Anonymous said...

I can split atoms with less php code.

Popular Posts - This week

        

Classified Links

  • Contact Us to show your links/advertisements in our wesbsites/blogs

Popular Posts - All Time

Random Post

For Any of your sofware development needs contact us at qualitypointmail@gmail.com or rajamanickam.a@gmail.com
QualityPoint

Translate

   
Thanks for visiting our blog