$addr = "[EMAIL PROTECTED]";
$splitaddr = explode("@",$addr);
resulting in $splitaddr[0] = "test";
$splitaddr[1] = "foo.com";
-Stewart
-----Original Message-----
From: Jacky [mailto:[EMAIL PROTECTED]]
Sent: 29 March 2001 23:52
To: [EMAIL PROTECTED]
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]