note 107853 rejected from control-structures.if by salathe

From: Date: Sat, 10 Mar 2012 10:44:02 +0000
Subject: note 107853 rejected from control-structures.if by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-186576@lists.php.net to get a copy of this message
Note Submitter: me at maxswisher dot com ---- 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

« previous php.notes (#186576) next »