Forum Moderators: coopster
<?php
for ($i=1; $i<=5; $i++) {
print "\$i is: $i";
}
// Now with <pre> tags:
print '<pre>';
for ($i=1; $i<=5; $i++) {
print "\$i is: $i\n";
}
print '</pre>';
?>
This is handy stuff to know, especially when you start using functions like PHP's print_r() [php.net] function to dump arrays out. It makes them much easier to read in your browser.
this thread talks a bit about what they are
CRLF vs LF [webmasterworld.com]