Topic awaiting preservation: php/html syntax |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: 1393 |
posted 12-15-2005 04:25
Is there any reason I wouldn't want to do something like this code: <?php if ($someVar == "something") { ?> html 'n stuff <?php } else { ?> other html 'n stuff <?php } ?> as opposed to using echo? |
Maniac (V) Inmate From: under the bed |
posted 12-15-2005 05:04
Whenever posible, I will end my PHP and write regular HTML rather than using echo. |
Maniac (V) Inmate From: Sthlm, Sweden |
posted 12-15-2005 11:22
I'll take the opposite & harsh opinion... |
Maniac (V) Inmate From: under the bed |
posted 12-15-2005 13:45
I wouldn't say that is the opposite opinion, just a stricter view of it |
Maniac (V) Inmate From: Sthlm, Sweden |
posted 12-15-2005 18:11
Ok, I'll go for stricter quote:
|
Maniac (V) Inmate From: under the bed |
posted 12-15-2005 21:39 |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 12-15-2005 21:41
Personally, these days I use a smarty based presentation layer. |