Re: Switch statement || How to output html without using echo() or print()
| From: | Johannes Schlueter | Date: | Sat, 25 Jan 2003 16:38:34 +0000 |
| Subject: | Re: Switch statement || How to output html without using echo() or print() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133110@lists.php.net to get a copy of this message | ||
On Saturday 25 January 2003 20:38, CF High wrote:
> Each operation has @ 50 lines of html -- do I have to echo or print all
> this html!?
Try something like
<?php
switch ($foo) {
case 1:
?>
<h1>Hello</h1>
<?php
break;
}
?>
johannes