note 107853 added to control-structures.if
| From: | me at maxswisher dot com | Date: | Fri, 09 Mar 2012 23:40:06 +0000 |
| Subject: | note 107853 added to control-structures.if | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186570@lists.php.net to get a copy of this message | ||
The if statement is at the heart of almost every dynamic website. I'm just having a small
problem with nesting if/else statements:
if (param1) {
Lalala
if (param2) {
Param 2 is true!
}
else {
Param2 is not true.
}
} else {
param1 is not true.
I know, I didn't say echo and all of that but this was just to demonstrate what I mean :P
I'm probably doing something wrong, I just wish the manual included a section on nesting so I
could figure it out easier :P
----
Server IP: 69.147.83.197
Probable Submitter: 173.167.101.249
----
Manual Page -- http://www.php.net/manual/en/control-structures.if.php
Edit -- https://master.php.net/note/edit/107853
Del: integrated -- https://master.php.net/note/delete/107853/integrated
Del: useless -- https://master.php.net/note/delete/107853/useless
Del: bad code -- https://master.php.net/note/delete/107853/bad+code
Del: spam -- https://master.php.net/note/delete/107853/spam
Del: non-english -- https://master.php.net/note/delete/107853/non-english
Del: in docs -- https://master.php.net/note/delete/107853/in+docs
Del: other reasons-- https://master.php.net/note/delete/107853
Reject -- https://master.php.net/note/reject/107853
Search -- https://master.php.net/manage/user-notes.php