Re: string

From: Date: Mon, 22 Jul 2002 02:00:07 +0000
Subject: Re: string
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-20691@lists.php.net to get a copy of this message
Hi, .: B i g D o g :. Thank you, indeed right after I post my question, I was able to use strpos and substr functions to solve my problem. But yours is even simpler with only one function, cheers. Thanks a lot. Sincerely Bo "Ray Hunter" <rhunter@venticon.com> ??????:01a901c23108$8a881a30$330c0a0a@digitalglobe.com... > list( name, rest ) = explode( '@', $email ); > > name = everything before the @ > rest = everything after @ > > .: B i g D o g :. > > > > ----- Original Message ----- > From: "bo" <bo1st@hotmail.com> > To: <php-db@lists.php.net> > Sent: Sunday, July 21, 2002 4:42 PM > Subject: [PHP-DB] string > > > > Hi, > > > > for any email end with @companyemail.com > > such as bo@companyemail.com > > how do I strip only the portion(in this case:bo) before the common > > ending:@companyemail.com ? > > Thanks a bunch! > > > > PHP: the solution to the web problem > > Best Regards to PHP Community > > > > Bo > > > > > > > > > > -- > > PHP Database Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.db (#20691) next »