note 89429 deleted from control-structures.if by cmb
| From: | cmb@php.net | Date: | Fri, 02 Oct 2020 12:26:34 +0000 |
| Subject: | note 89429 deleted from control-structures.if by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215517@lists.php.net to get a copy of this message | ||
Note Submitter: contact at bsorin dot romania
----
This has got the better part of my last 2 hours, so I'm putting it here, maybe it will save
someone some time.
I had a
if (function1() && function2())
statement. Before returning true or false, function1() and function2() had to output some text. The
trick is that, if function1() returns false, function2() is not called at all. It seems I should
have known that, but it slipped my mind.