Re: [PHP] help with \n\r in strings
- From: manolet@xxxxxxxxx ("Manolet Gmail")
- Date: Fri, 29 Dec 2006 21:08:15 -0500
2006/12/29, Arpad Ray <arpad@xxxxxxxxxxx>:
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
- References:
- help with \n\r in strings
- From: Angelo Zanetti
- Re: [PHP] help with \n\r in strings
- From: Arpad Ray
- help with \n\r in strings
- Prev by Date: mime with php4.4.4 does not work anymore
- Next by Date: retrieve top n entries from an associative array
- Previous by thread: Re: [PHP] help with \n\r in strings
- Next by thread: Re: help with \n\r in strings
- Index(es):
Relevant Pages
|