How do you keep your X/HTML tidy with PHP?

Evan W

New member
When ever I use the echo function and make html and such, I view the page source and its all squished together (its valid but unreadable). What can I do in PHP to make this cleaner?
<p>Blahblah</p><p>BlahblahBlahblahBlahblah</p><p>
Blahblah<br />Blahblah<br />Blahblah</p>

Yeah, Its all one big line. I want it to be properly formated.
 
Back
Top