note 11055 deleted from control-structures by jimw
| From: | jimw@php.net | Date: | Thu, 20 Dec 2001 23:09:55 +0000 |
| Subject: | note 11055 deleted from control-structures by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23539@lists.php.net to get a copy of this message | ||
While not stated above, 'if' statements can be used to control the display of blocks of
HTML:
<?php
execute_some_code ();
if ($condition)
{
?>
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK HREF="default.css" REL="stylesheet" TYPE="text/css">
<?php
}
execute_more_code ();
?>
The braces must be present for this to function correctly. Single line 'if' statements
won't do what you expect.