Page 1 of 1

what do the "\n"s mean? in this code? (book doesn'

Posted: Fri Jun 15, 2007 2:36 pm
by phexus
The code works fine If I take them out completely, so I'm wondering what they are for..
.

echo "<tr>\n <td align='right'>$distance</td>\n";
echo " <td align = 'right'>". $distance / 10 ."</td>\n</tr>\n";
$distance += 50;

Thanks. :wink:

Posted: Fri Jun 15, 2007 2:38 pm
by nickvd
they

are

newline

characters

similar

to

those

that

you

see

here

Posted: Fri Jun 15, 2007 2:46 pm
by phexus
great thanks :wink:

Posted: Fri Jun 15, 2007 3:01 pm
by vigge89
There's alot more informations and additional escape characters listed on php.net, incase you're interested:
http://php.net/manual/en/language.types ... tax.double