order of evaluation
| From: | Erik Price | Date: | Tue, 09 Apr 2002 15:39:31 +0000 |
| Subject: | order of evaluation | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-92244@lists.php.net to get a copy of this message | ||
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