Re: Simple problem

From: Date: Tue, 19 Feb 2002 09:13:28 +0000
Subject: Re: Simple problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-85367@lists.php.net to get a copy of this message
I need insert some variable ito log.txt file but every item (variable) must be on other line how to do this ?
If I am understanding your question correctly, you need to add a newline character (\n) at then end every line. Like so: $fp1 = Fopen("D:\\log.txt","a+"); fwrite($fp1,"$start\n"); fwrite($fp1,"$array[0]\n"); fwrite($fp1,"$array[1]\n"); ..... fwrite($fp1,$end); Fclose($fp1); HTH -jeff

« previous php.general (#85367) next »