title: PHP error_log outputting line breaks as literal "\n" strings on Mac OSX
body: <p>I'm working on some code that uses <code>error_log()</code> for debugging. The problem is that for some reason, all of the line breaks in the output appear as literal <code>\n</code> strings, so there's no actual line break (making it damn near impossible to comprehend complex arrays).<br>
  I tried using both <code>var_export</code> and <code>print_r</code> with the <code>error_log</code> function, and both led to the same result: a block of text with <code>\n</code> scattered throughout. I even tried doing <code>str_replace</code> <code>\n</code> to <code>PHP_EOL</code> with no success. What am I doing wrong?</p>
  
  <p>To clarify: the <code>\n</code> strings appear in the Console error log viewer, TextEdit, and the Terminal.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Just wanted to note in advance that yes, I'm aware that you need to double-quote <code>\n</code> strings for them to appear as line breaks. However, I'm dealing with the output from <code>print_r</code> or <code>var_export</code> (to inspect an array) so this doesn't really help me (I think?).</p>