wispas Posted July 23, 2010 Share Posted July 23, 2010 So i am bringing in two words from a form... but just to keep things simple... lets says i have: GB95/Andrew I want to use PHP to eliminate the '/' and then put the two words 'GB95' and 'Andrew' into seperate variables... does anyone know how i can achieve this? Link to comment https://forums.phpfreaks.com/topic/208649-strip-and-selecting-two-words/ Share on other sites More sharing options...
inversesoft123 Posted July 23, 2010 Share Posted July 23, 2010 $string = "GB95/Andrew"; $pices = explode('/',$string); echo "$pices[0]"; echo "<br/>"; echo "$pices[1]"; Link to comment https://forums.phpfreaks.com/topic/208649-strip-and-selecting-two-words/#findComment-1090036 Share on other sites More sharing options...
wispas Posted July 23, 2010 Author Share Posted July 23, 2010 worked like a charm... thank you so much" Link to comment https://forums.phpfreaks.com/topic/208649-strip-and-selecting-two-words/#findComment-1090058 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.