[PHP] Speed Question

2002-07-19 Thread JJ Harrison
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'])

Re: [PHP] Speed Question

2002-07-19 Thread Jason Wong
On Thursday 18 July 2002 19:32, JJ Harrison wrote: 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? Function executes twice. would it be

Re: [PHP] Speed Question

2002-07-19 Thread JJ Harrison
thx Jason Wong [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Thursday 18 July 2002 19:32, JJ Harrison wrote: if I do this: if(validate($_POST['password'], $_POST['username']) != 0) echo validate($_POST['password'], $_POST['username']); will it