[SOLVED] insert new line

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
winsonlee
Forum Commoner
Posts: 76
Joined: Thu Dec 11, 2003 8:49 pm

[SOLVED] insert new line

Post by winsonlee »

$myFile = "hello.txt";
$fh = fopen($myFile, 'w') or die("can't open file");


$bodywrite = $bodywrite . "\npresent(".$presentinfo.").*";



after writing into a text file, the present dooesnt appear in newline. i wonder what went wrong ??
winsonlee
Forum Commoner
Posts: 76
Joined: Thu Dec 11, 2003 8:49 pm

Post by winsonlee »

i manage to find the solution

should be \r\n
Post Reply