php directive to make print_r use "\r\n" instead of "\n"?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • yawnmoth

    php directive to make print_r use "\r\n" instead of "\n"?

    print_r uses "\n" to distinguish between subsequent elements of an
    array. This is fine unless you're trying to view the resultant file in
    something like Notepad. As such, without reimplementing print_r or
    doing output buffering, is there a way to make print_r replace "\n"
    with "\r\n"? Like some sort of PHP directive that could be specified
    in php.ini or something?

Working...