Re: line break

From: Date: Fri, 27 Apr 2001 02:43:36 +0000
Subject: Re: line break
Groups: php.general 
Request: Send a blank email to php-general+get-50537@lists.php.net to get a copy of this message
At 22:07 26/4/2001 -0400, you wrote:
Hi all, I know how to get a line break in text. Is there a way to get a line break between the user agent string below? I would line to print in a column instead of a long row.
Use \n\r concatening with your actual string See below:
<?php $newfile = fopen("log_test.txt", "a+"); fwrite($newfile, getenv("HTTP_USER_AGENT")."\n\r"); fclose($newfile); ?>
It will work. Regards Alex

« previous php.general (#50537) next »