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? Quote Link to comment 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]"; Quote Link to comment 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" Quote Link to comment 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.