Re: [PHP] Segmented Code/HTML VS. ECHO??

2001-11-19 Thread Jason G.
We are not writing in perl... Php offers a very handy feature, the ability to go in and out of html/php code by just using ? ? and the ability to echo data by using ?= $var ? Seperate as much of your HTML from your PHP as possible. It will assist in readability, and maintenance.

RE: [PHP] Segmented Code/HTML VS. ECHO??

2001-11-18 Thread Martin Towell
I think it's just a matter of taste - I haven't found any noticable differences between the two. Sometimes the code it more readable with raw html, sometimes with echos. -Original Message- From: Brad Melendy [mailto:[EMAIL PROTECTED]] Sent: Monday, November 19, 2001 11:37 AM To: [EMAIL

Re: [PHP] Segmented Code/HTML VS. ECHO??

2001-11-18 Thread Christopher William Wesley
I _hate_ echo'n out big batches of HTML, so I never do it. I prefer to include HTML, or have a class or function write HTML. However, printing in heredoc style is very handy ... more so than sliced bread. For example: ?php $color = #FFCC00; $name = Yogi; print EOF