Jump to content

Strip part of String Variable

cortez creations

Recommended Posts

Hey there.

Thinking this should be an easy one but I can only seem to find info on the string replace function.

What I'm trying to do is strip everything after the @ from an email variable.


So for example $mail variable comes in as



How would I strip the variable to only contain me and remove the @gmail.com


I'll keep searching for the answer myself but if anyone can throw me a bone it's be appreciated.



Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.