Speed Question
| From: | JJ Harrison | Date: | Thu, 18 Jul 2002 11:32:58 +0000 |
| Subject: | Speed Question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-108477@lists.php.net to get a copy of this message | ||
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
webmaster@tececo.com
www.tececo.com