redarrow Posted April 5, 2006 Share Posted April 5, 2006 Can you kindly tell me if the below code has any code speed diffrence in doing one example or the other cheers.example 1[code]<?echo"<br><br><br>";$email="Anyemailaddress@anywere.com";if(eregi("^.{1,25}@.{1,25}[./-].{1,3}$" , $email)) {echo"Email address valid";}else {if(eregi("^.{1,25}.{1,25}[./-].{1,3}$" , $email)) {echo"Email address not valid";}}[/code]example 2[code]<?echo"<br><br><br>";$email="Anyemailaddress@anywere.com";if(eregi("^.{1,25}@.{1,25}[./-].{1,3}$" , $email)) {echo"Email address valid";}else {echo"Email address not valid";}?>[/code] Quote Link to comment Share on other sites More sharing options...
Hooker Posted April 6, 2006 Share Posted April 6, 2006 if theres any difference at all it shouldnt be noticeable to be honest. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.