Re: help with \n\r in strings
| From: | Manolet Gmail | Date: | Sat, 30 Dec 2006 02:08:15 +0000 |
| Subject: | Re: help with \n\r in strings | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246291@lists.php.net to get a copy of this message | ||
2006/12/29, Arpad Ray <arpad@rajeczy.com>:
Angelo Zanetti wrote: So is there a way to test for \r\n? or what else can I use to delimit these two values (last column of row and first column of next row)?mmm what about open the file with and hex editor?.. or mmm notepad++ have a option to see if is \r \n or \r\n hopes helps
Since it's coming from a file, you might as well just read it with file(), which will split each line into an array automatically. If it's a CSV file, then fgetcsv() helps you out even more. Arpad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php