i know in html it's <br>, but what is it in php? Thanks!
PHP question, how to skip lines
Since PHP's output would normally be HTML code, it would still be <br>, or <br /> in XHTML.
Of course, if you want new lines within the HTML source code, then the new line sequence for the platform would do the trick.
Usually I just use "\n" for that.
On windows it's \n
*nix its something like ascii(100)
Mac its something like ascii(110)
Originally posted by Steveo31
On windows it's \n
*nix its something like ascii(100)
Mac its something like ascii(110)
i beleive ascii is a standard and its the same everywhere, newline ascii decimal 10 or 0x0A hex.
windows systems tend to like \n where unix prefers a \r\n.
but yeah like laserlight said, <br> in php also or \n to show new lines in source output.
i tried
echo "<br>";
for the hell of it and it worked, thanks anyways.
Actually, the new line sequences are:
Unix: \n
Win: \r\n
Mac: \r
the newline character itself would be \n, while \r is the carriage return character.
Huh. Weird. I read somewhere that what I wrote was true.
Oh well.
You probably misread it, forgot the details, or your source is wrong.
ASCII 100 is 'd', while ASCII 110 is 'n'