Re: Split email addresses
| From: | Andy Woolley | Date: | Thu, 12 Oct 2000 10:29:36 +0000 |
| Subject: | Re: Split email addresses | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-34761@lists.php.net to get a copy of this message | ||
***************************
$email = "guest@aol.com";
$newarray = split("@", $email);
echo $newarray[0]; # will isplay "guest"
echo $newarray[1]; # will display "@aol.com"
***************************
Or something like that, try it and see what happens.
Regards
Andy Woolley
M.D.
www.databasewatch.com
----- Original Message -----
From: "I G" <hungama_in_underwear@yahoo.com>
To: "php-dev" <php-dev@lists.php.net>; <mysql@lists.mysql.com>
Sent: Saturday, October 14, 2000 11:07 AM
Subject: Split email addresses
> Hi
> is there any way by which i can split an email address into two
> variables like
> email address: guest@aol.com
>
> variable1 = "guest"
> variable2 = "@aol.com"
>
> and then insert it into mysql database using php3
> username = "guest"
> domain name = "@aol.com"
> email = "guest@aol.com"
>
> can you pls help or is there any example available
>
>
> --
> ---------------------------------------------------------------------
> Please check
> "http://www.mysql.com/documentation/manual.php" before
> posting. To request this thread, e-mail mysql-thread53052@lists.mysql.com
>
> To unsubscribe, send a message to:
> <mysql-unsubscribe-andy=milonic.com@lists.mysql.com>
>
> If you have a broken mail client that cannot send a message to
> the above address (Microsoft Outlook), you can use:
> http://lists.mysql.com/php/unsubscribe.php
>
>