I have a string that returns a session ID with the customer name at the beginning and an underscore after the name....
Ex.
fredsmith_e33r3555fsd
I want to read the text from a string and return the name only (everything up to the "underscore").
In the example above, I want to return only "fredsmith".
I have toyed around with "substr", but can't seem to figure out how to get PHP to stop reading at the underscore and return the name.
Can someone point me to the function I am looking for and any other help that you feel like providing.
Regards from Georgia, USA.
Bill