Re: script question

From: Date: Wed, 04 Oct 2000 09:50:02 +0000
Subject: Re: script question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-18551@lists.php.net to get a copy of this message
Try to use $list = explode("@", $email). You will find before@ in $list[0] and after@ in $list[1]. Martin BrianSander wrote: > > Greetings, > > I have a problem which will probably has a very simple solution, I'm > relatively new to programming in general. > > I'm attempting to write a php script which will split an email address > into its name and domain components. > > $email is passed from a webpage > > <?php > > $before_@ = (some regular expression)$email > $after_@ = (some regular expression)$email > > ?> > > > How would this be accomplished? > > Thanks. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#18551) next »