dreamwest Posted January 16, 2009 Share Posted January 16, 2009 Ive been told this is a php question..... I have 20,000 lines of string seperated by a deliminator "|" in a .txt file like this: Description is here| Category is here| Title is here Description2 is here| Category2 is here| Title2 is here Is there a way to split the string up into sections before inserting them into the databse?? The database columns are "description" "category" and "title" Quote Link to comment https://forums.phpfreaks.com/topic/141062-split-string/ Share on other sites More sharing options...
Mark Baker Posted January 16, 2009 Share Posted January 16, 2009 $sections = explode('|',$string); Quote Link to comment https://forums.phpfreaks.com/topic/141062-split-string/#findComment-738265 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.