|
RE: How to implode with carraige return ?: msg#03582php.general
unix uses just \n ( chr(13) ) windows uses \r\n ( chr(10).chr(13) ) try changing \n\r to \r\n HTH Martin -----Original Message----- From: Manisha [mailto:manisha@xxxxxxxxxx] Sent: Friday, May 24, 2002 1:35 PM To: php-general@xxxxxxxxxxxxx Subject: [PHP] How to implode with carraige return ? I have 3 elements in an array $arr[1] = " 1 | Manisha "; $arr[2] = " 2 | Milind "; $arr[3] = " 3 | Aish "; I want to implode it to string first and later on want to write in to txt file. I tried to implode this chr(13) as a separator. I tried with $arr[1] = "1 | Manisha \n\r" as an array element. But I do not see new line, instead I see small square box. Server environment - Unix - PHP4 I see file after ftp to my computer (Win 98) Thanks in advance Manisha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | How to implode with carraige return ?, Manisha |
|---|---|
| Next by Date: | RE: Mail Headers problem......., Martin Towell |
| Previous by Thread: | Mail Headers problem......., CDitty |
| Next by Thread: | RE: How to implode with carraige return ?, Manisha |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |