help with \n\r in strings
- From: angelo@xxxxxxxxxxxx (Angelo Zanetti)
- Date: Fri, 29 Dec 2006 11:42:50 +0200
Hi all,
I receive a text file with a whole bunch of strings. and each line is terminated by what I presume is \n\r however when I read the string into PHP, it seems that the last column of the row and the first column of the next row are connected but it appears as a space but I've done all kinds of tests like $spacePos = strrpos($dateAmount, ' '); but this is always empty.
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)?
Thanks in advance.
Angelo
--
------------------------------------------------------------------------
Angelo Zanetti
Systems developer
------------------------------------------------------------------------
*Telephone:* +27 (021) 469 1052
*Mobile:* +27 (0) 72 441 3355
*Fax:* +27 (0) 86 681 5885
*
Web:* http://www.zlogic.co.za
*E-Mail:* angelo@xxxxxxxxxxxx <mailto:angelo@xxxxxxxxxxxx>
.
- Follow-Ups:
- Re: help with \n\r in strings
- From: Al
- Re: [PHP] help with \n\r in strings
- From: Arpad Ray
- RE: [PHP] help with \n\r in strings
- From: "Peter Lauri"
- Re: [PHP] help with \n\r in strings
- From: Robert Cummings
- Re: help with \n\r in strings
- Prev by Date: RE: [PHP] Re: Chocked
- Next by Date: RE: [PHP] Re: Chocked
- Previous by thread: 403 Forbidden
- Next by thread: Re: [PHP] help with \n\r in strings
- Index(es):