re: [PHP] How to add a carriage return in the end when using implode?

2002-01-08 Thread Zhang, Leon (STHK/Zh)
Yes,I have just worked out ,thank you Jason. -原始邮件- 发件人: Jason Wong [mailto:[EMAIL PROTECTED]] 发送时间: 08 January, 2002 16:46 收件人: [EMAIL PROTECTED] 主题: Re: [PHP] How to add a carriage return in the end when using implode? On Tuesday 08 January 2002 14:18, Zhang, Leon (STHK/Zh) wrote

Re: [PHP] How to add a carriage return in the end when using implode?

2002-01-08 Thread Jason Wong
On Tuesday 08 January 2002 14:18, Zhang, Leon (STHK/Zh) wrote: > $subdata has been changed before > > then $data[$index]=implode(",", $subdata); <--what should I > change here ? > > rewrite the file like this : > > $data[$index]=$data[$index]; > $fp=fopen($datafile,"w+"); > $a=

[PHP] How to add a carriage return in the end when using implode?

2002-01-07 Thread Zhang, Leon (STHK/Zh)
$subdata has been changed before   then $data[$index]=implode(",", $subdata); <--what should I change here ?   rewrite the file like this :   $data[$index]=$data[$index];$fp=fopen($datafile,"w+");    $a=0;    do{    fputs($fp,$data[$a]);<--or here?.