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]
Try to use explode and keep the second element of the array
Just a quick thought ..
- Original Message -
From: Jacky [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 30, 2001 12:52 AM
Subject: [PHP] split string value again
Hi again
have to try again after I have
y" [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 an
$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: [EMAI
try this snippet:
?
if (ereg("[^@]+\$", "[EMAIL PROTECTED]", $result))
{
$domain = $result[0];
echo $domain;
}
?
""Jacky"" [EMAIL PROTECTED] wrote in message
009301c0b8a2$e856f6c0$[EMAIL PROTECTED]">news:009301c0b8a2$e856f6c0$[EMAIL PROTECTED]...
Hi again
have to try again after I
ky' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, March 29, 2001 3:51 AM
Subject: RE: [PHP] split string value again
$addr = "mailto:[EMAIL PROTECTED];
$splitaddr = explode("@",$addr);
resulting in $splitaddr[0] = "test";
$splitaddr[1] = "foo.c
"Jacky" [EMAIL PROTECTED] wrote:
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
7 matches
Mail list logo