teelou teelou - 1 year ago 117
PHP Question

Making a new line with single quotes?

Can I do a line break like this

'\n'
?

Or do I must use double quotes -
"\n"
?

Answer Source

You have to use double quotes. Otherwise, PHP will literally output \n.

http://php.net/manual/en/language.types.string.php

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download