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:
» We Wish To Create A Sign In Form As Like Http://www.realtor.com/. Please Le Me Know How To Set Up Such A Form
» In What Ways Is PHP 5 Better Than PHP 4?
» Auto Mail Sending In Particular Date From DB.
» Smap Schema
» Which Is The Best PHP Content Management System?
» How Do I Unlink A File From Flash As3??
» Who Is The Guy On The Homepage Of This Site?
» How Do I Submit A Form Without Using A Submit Button Or Pressing Enter?


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


Link to This Question!