regular expression functions

From: Date: Sat, 02 Sep 2000 07:21:26 +0000
Subject: regular expression functions
Groups: php.windows 
Request: Send a blank email to php-windows+get-2383@lists.php.net to get a copy of this message
Why we use the printf( ) and sprintf( ) to display something instead of using echo sometimes? What is the usefulness? Another thing is ereg("^.+@.+\\..+$", $email) can be used to validate e-mail format. But how can I improve it to have the functionality: if the email address contains two "@", it can also validate it as an invalid email address? thank you very much!

« previous php.windows (#2383) next »