note 89429 added to control-structures.if
| From: | contactatbsorindotromania at osu1 dot php dot net | Date: | Sat, 07 Mar 2009 16:28:14 +0000 |
| Subject: | note 89429 added to control-structures.if | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-151591@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 69.147.83.197
Probable Submitter: 89.34.226.144
----
Manual Page -- http://www.php.net/manual/en/control-structures.if.php
Edit -- https://master.php.net/note/edit/89429
Del: integrated -- https://master.php.net/note/delete/89429/integrated
Del: useless -- https://master.php.net/note/delete/89429/useless
Del: bad code -- https://master.php.net/note/delete/89429/bad+code
Del: spam -- https://master.php.net/note/delete/89429/spam
Del: non-english -- https://master.php.net/note/delete/89429/non-english
Del: in docs -- https://master.php.net/note/delete/89429/in+docs
Del: other reasons-- https://master.php.net/note/delete/89429
Reject -- https://master.php.net/note/reject/89429
Search -- https://master.php.net/manage/user-notes.php