Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old October 18th, 2006, 06:25 PM
yawnmoth
Guest
 
Posts: n/a
Default 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?

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles