Why doesn't the following code print the newline properly?
Answer Posted / Yash Vardhan Srivavastava
In PHP, echo doesn't automatically add a newline at the end of the output. To print a newline in your code, use `echo "n"` instead of just `echo n`. The backslash before n is to escape it as a character and not create a newline.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers