if I do this:

if(validate($_POST['password'], $_POST['username']) != 0)
echo validate($_POST['password'], $_POST['username']);

will it execute the function twice or use the same result twice?

would it be (slightly) faster to do this:

$uid = validate($_POST['password'], $_POST['username'])
if($uid != 0)
echo $uid);


--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to