My php form which saves the output in a text file glues the result to one string like:
Name1Email1The Message1Name2Email2The Message2Name3Email3The Message3Name4Emai
I usually combine New Line with Carriage Return:
New Line
Carriage Return
$data = $_POST['name'] . "\r\n";