Don't forget to mark this thread resolved.
And just to elaborate, in case it wasn't clear, there are two options you have:
$var = "stuff \\n stuff";
// OR
$var = 'stuff \n stuff';
The first method uses a double-quote delimited string, so PHP tries to interpret special escape sequences (e.g. \n => carriage return character). The extra backslash preceding the backslash means PHP that you want it to ignore the backslash's special properties and just print a literal '\' character.
The second method doesn't require such escaping because PHP doesn't parse these special backslash sequences (or perform variable interpolation) in single-quote delimited strings.