How do I echo in PHP without carriage returns?
carriage-return, echo, php
Solution
I have to conclude that a server setting causes PHP to precede and follow all output with an arbitrary number of carriage returns. Of course, this is an error in the config files of the web host I'm working with. It shouldn't be like this.
Problem
Whenever I do an echo in PHP, I get two extra carriage returns. For example: ``` <?php echo 'abc'; ?> ``` yields abc[cr][cr]. If I copy my script to a different server, I even get [cr]abc[cr][cr]. How do I force PHP to echo only my string 'abc' and not the carriage returns?