28 Mar 2011 at 16:59 #1 Lethal` Lethal` Soldato Joined 25 Oct 2006 Posts 5,395 What's the best way to output well indented HTML from PHP? I considered using the HEREDOC syntax, but that makes the indented PHP source look just as bad.
What's the best way to output well indented HTML from PHP? I considered using the HEREDOC syntax, but that makes the indented PHP source look just as bad.
28 Mar 2011 at 17:51 #5 Lethal` Lethal` Soldato OP Joined 25 Oct 2006 Posts 5,395 Ekim said: Yep, I used to spend ages making sure that my HTML code looked tidy when being output by PHP. With Firebug etc. I don't see the point anymore - there is very few times I just 'view source' now when looking for a problem. Click to expand... I agree. However this is assessed work, so I want to make it look as neat as possible
Ekim said: Yep, I used to spend ages making sure that my HTML code looked tidy when being output by PHP. With Firebug etc. I don't see the point anymore - there is very few times I just 'view source' now when looking for a problem. Click to expand... I agree. However this is assessed work, so I want to make it look as neat as possible