When converting text from a unix environment, one needs to add a linefeed to each line. Which line of code is correct?
($str is the data of the file loaded as a variable)
$str = str_replace("\r", "\r\n", $str);
or
$str = str_replace("\n","\n\r",$str);
Thanks for assistance.