Re: help with \n\r in strings
| From: | Arpad Ray | Date: | Fri, 29 Dec 2006 10:50:40 +0000 |
| Subject: | Re: help with \n\r in strings | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246277@lists.php.net to get a copy of this message | ||
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)?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