How to insert a newline while using error_log() in php
error_log()
I tried to use <br> and but those didn't work.
<br>
Use double quotes when putting the error message:
error_log("This is a two lined message. This is line two.");
should work.
error_log('This is a one lined message. This is the same line still.');
will not work: notice the single quotes.
548k questions
547k answers
4 comments
86.3k users