I have the following code:
$message = \"Good news! The item# $item_number on which you placed a bid of \\$ $bid_price is now available for purchase at your b
When we insert any line break with a programming language the char code for this is "\n". php does output that but html can't display that due to htmls line break is
. so easy way to do this job is replacing all the "\n" with "
". so the code should be
str_replace("\n","
",$str);
after adding this code you wont have to use pre tag for all the output oparation.
copyed this ans from this website :