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" <[EMAIL PROTECTED]> ??????:01a901c23108$8a881a30$[EMAIL PROTECTED] > list( name, rest ) = explode( '@', $email ); > > name = everything before the @ > rest = everything after @ > > .: B i g D o g :. > > > > ----- Original Message ----- > From: "bo" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, July 21, 2002 4:42 PM > Subject: [PHP-DB] string > > > > Hi, > > > > for any email end with @companyemail.com > > such as [EMAIL PROTECTED] > > 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 > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php