Print newline in PHP in single quotes

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-03-28T05:15:07Z Indexed on 2010/03/28 5:23 UTC
Read the original article Hit count: 418

Filed under:
|

Hey all,

I try to use single quotes as much as possible and I've noticed that I can't use \n in single quotes. I know I can just enter a newline literally by pressing return, but that screws up the indentation of my code.. Is there some ASCII character or something that I can type that will produce newline when I'm using single quotes?

Thanks! Matt Mueller

© Stack Overflow or respective owner

Related posts about php

Related posts about string