I got this out the manual:
<?php $email = '[EMAIL PROTECTED]'; $domain = strstr($email, '@'); print $domain; // prints @example.com ?> how do I get the "user" ranther than "@example.com"Thanks
$bits = explode('@',$email); echo $bits[0];
http://www.php.net/explode
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php