help with \n\r in strings

From: Date: Fri, 29 Dec 2006 09:42:50 +0000
Subject: help with \n\r in strings
Groups: php.general 
Request: Send a blank email to php-general+get-246271@lists.php.net to get a copy of this message
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@zlogic.co.za <mailto:angelo@zlogic.co.za>


« previous php.general (#246271) next »