使用mail(); 添加一个不存在的额外回复

issue is after I use the mail function it adds a return break that is not there. code is as follow:

    $lesujet = "testing ...";
    $letexts = "a bunch of text       
    there is a return break here
    another return break as you see";

    mail("myemail@gmail.com",$lesujet,$letexts,$headers);

this is what the email look like : a bunch of text

there is a return break here

another return break as you see

Try using the function str_ireplace to remove the line break characters:

$letexts = str_ireplace(array("","
"),array('',''),$letexts);

That's because when you initialize the strings in multiple lines it actually adds a to the string after each line, try instead:

$letexts = "a bunch of text "
. "there is a return break here "
. "another return break as you see ";

For multiline string init, check this SO thread for the discussion around the best practices of multiline strings.