Quantcast
Viewing all articles
Browse latest Browse all 21

PHP: \r character being ignored

I have a string $s="one\rtwo\rthree\rfour\rfive" and when I do print $s I expect to see five only because the linefeed resets the line.

Instead I seem to be seeing one two three four five.

What's going on?


Viewing all articles
Browse latest Browse all 21

Trending Articles