"try again" after 20 minutes...give people some time to
respond!...anyways, you can explode the variable...
list($junk,$domain) = explode("@",$email);
checkout http://www.php.net/explode
you'll use it a lot....
-jack
----- Original Message -----
From: "Jacky" <[EMAIL PROTECTED]>
Date: Thursday, March 29, 2001 5:52 pm
Subject: [PHP] split string value again
> Hi again
> have to try again after I have not recieved any advice, I have a
> vairable that stores email address value. I need to break it so
> that I will only get the dmain name bit to store in another
> variable so that I can redirect user to that domain, like if user
> email is [EMAIL PROTECTED] then I would like to break that and take
> only foo.com bit to use for navigation.
> How can I do that?
> Jack
> [EMAIL PROTECTED]
> "There is nothing more rewarding than reaching the goal you set
> for yourself"
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]