Hello Jakes, Friday, February 27, 2004, 1:55:40 PM, you wrote:
J> I got this out the manual: J> <?php J> $email = '[EMAIL PROTECTED]'; J> $domain = strstr($email, '@'); J> print $domain; // prints @example.com ?>> J> how do I get the "user" ranther than "@example.com"Thanks Use strpos() to locate the character (or string) you want and substr() it. Something like: $search = "@"; $email = "[EMAIL PROTECTED]"; $user = substr($email, 0, strpos($search)); -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php