Connecting Tech Pros Worldwide Help | Site Map

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

  #1  
Old October 18th, 2006, 06:25 PM
yawnmoth
Guest
 
Posts: n/a
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?

Closed Thread