codingbenn Posted November 26, 2012 Share Posted November 26, 2012 Say if I had a sentence like; Adam, Floop, 89, 78 and break this up into various strings? This will be a search result so it WILL change. so like change it to; $first $last $num1 $num2 thanks Link to comment https://forums.phpfreaks.com/topic/271164-breaking-a-string-up-into-various-strings-help/ Share on other sites More sharing options...
AyKay47 Posted November 26, 2012 Share Posted November 26, 2012 If the order of the subjects do not change. You can use a combination of explode and list Link to comment https://forums.phpfreaks.com/topic/271164-breaking-a-string-up-into-various-strings-help/#findComment-1395054 Share on other sites More sharing options...
Pikachu2000 Posted November 26, 2012 Share Posted November 26, 2012 Is the string a search result from a database query? Link to comment https://forums.phpfreaks.com/topic/271164-breaking-a-string-up-into-various-strings-help/#findComment-1395063 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.