Waizujin Posted July 3, 2009 Share Posted July 3, 2009 Is their a function in PHP that takes all the content then spits it out in one line. Basically do all the PHP stuff, then with the resulting html, spit it out into a javascript document.write and then have it work? Basically remove all new lines. Link to comment https://forums.phpfreaks.com/topic/164605-output-html-in-one-line/ Share on other sites More sharing options...
celsoendo Posted July 3, 2009 Share Posted July 3, 2009 <?php // Remove new lines and carriage returns $html = ereg_replace("[\r\n]+", "", $html); ?> Link to comment https://forums.phpfreaks.com/topic/164605-output-html-in-one-line/#findComment-868206 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.