Re: order of evaluation
| From: | Yuri Petro | Date: | Tue, 09 Apr 2002 15:48:19 +0000 |
| Subject: | Re: order of evaluation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92248@lists.php.net to get a copy of this message | ||
I think that set_password() will not be processed.
--
Kind regards,
Yuri.
>>>> www.AceHoster.com <<<< Quality web hosting
"Erik Price" <pricee@hhbrown.com> ???????/???????? ? ???????? ?????????:
news:FC3FEF8A-4BCF-11D6-92CD-0050E4857868@hhbrown.com...
> A quick question about evaluation:
>
> I have the following line in the middle of a large if/elseif/else
> statement:
>
> elseif (!empty($_POST['newpassword']) &&
> !$user->set_password($_POST['newpassword']))
>
> I am simply wondering whether or not the set_password() method will be
> processed if the first test, !empty(), fails. I certainly don't want to
> set the password to an empty string! (Actually the method requires at
> least 8 characters or it fails, but I was wondering for the sake of
> curiosity what would happen.)
>
>
> Thank you,
>
> Erik
>
>
>
>
>
> ----
>
> Erik Price
> Web Developer Temp
> Media Lab, H.H. Brown
> pricee@hhbrown.com
>