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?
echo
doesn't append a \n
in PHP.
You may want to drop the closing ?>
though, then you guarantee you won't have any trailing output.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With