换行问题

I am forcing a text file download but I don't get a line break in the text file. It shows

header("Content-type: text/text");
header("Content-Disposition: attachment; filename=testi.txt");
foreach($results as $result){
echo $result['xrt'].' '.$result['CMP'].'    '.$result['Add'].' '.$result['AFG'].'   '.'Times'.' '.$result['range'].'
';
}

You could use PHP_EOL

header("Content-type: text/text");
header("Content-Disposition: attachment; filename=testi.txt");

foreach($results as $result){
    echo $result['xrt'].'   '.$result['CMP'].'  '.$result['Add'].' '.$result['AFG'].'   '.'Times'.' '.$result['range'].PHP_EOL;
}

Or if you must type them, use: " "

header("Content-type: text/text");
header("Content-Disposition: attachment; filename=testi.txt");

foreach($results as $result){
    echo $result['xrt'].'   '.$result['CMP'].'  '.$result['Add'].' '.$result['AFG'].'   '.'Times'.' '.$result['range']."
";
}