Get Answers!
   

rohinibudda

How To Split A String

Thursday, 18th December 2008

I.e if the str= welcome to java i want to split it in to welcom, to , java
 





Diesel
$string=welcome to java
$splitstring=explode(" ",$string);
echo $splitsting[0]; //this prints "welcome"
echo $splitsting[1]; //this prints "to"
echo $splitsting[2]; //this prints "java"
Friday, 19th December 2008
Votes:

More Programming:
» Which PHP Ad Manager Do You Recommend For Me To Use?
» How Do I Change The Color Of My Table Cell When A User Does A Mouseover?
» Can I Run PHP Code In Tomcat Server 5.x Or 6.x ?
» Form To E-mail With Attachments
» Need To Know How To Make A Java Program To Put Mecical Records For My Java Class
» Tr Trageting In Javascript PLEASE HELP!!!!
» How To Store Xml File In Mysql Database Using Php
» How To Update Uploaded File In Htdocs Using Php


Leave a Comment on "How To Split A String"
You must be logged in to post a comment.


Link to This Question!