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 Quote 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 Quote 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? Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.