Professional Documents
Culture Documents
php if (condition) { ?> <!----HTML content to display if condition is true-------> <?php } else { ?> <!--HTML content to display if condition is false--> <?php } ?> </body> somewhat confusing but if taken <?php as a gateway to php mode and ?> as an exit from php mode this code makes perfect sense/ Alternative form of the if=else statemtn of multipurpose page-=== Mbody> <?php if(condition): ?> <!--------html code to execute---------> <?php else: ?> <!-------html content to display if condition is false-------> <?php endif; ?> </body>