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" 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); Link to comment https://forums.phpfreaks.com/topic/141062-split-string/#findComment-738265 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.