Quantcast
Viewing all articles
Browse latest Browse all 21760

Re: how replace comma with break line

Your code should work fine.

 

Problem is if you're outputting to a browser, it will attempt to render it as HTML (unless you send a <cfcontent type="text/plain" />)  As such, if you run your code, you'll see both John and Dee on the same line.  But do a "VIEW SOURCE" in your browser, and you'll see they're being output on new lines (because of your chr(10) and chr(13)).

 

This is the default behavior of a browser and the text/html mime type.


Viewing all articles
Browse latest Browse all 21760

Trending Articles