Re: Finding linefeeds in Strings

From: Date: Mon, 02 Apr 2001 23:49:46 +0000
Subject: Re: Finding linefeeds in Strings
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-46723@lists.php.net to get a copy of this message
Works for me... Keep in mind that not all OSes use \n as linefeed, so the data you have may not be what you think it is... -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Jens Kisters <newsletters@rosomm-partner.de> Newsgroups: php.general Sent: Thursday, March 29, 2001 9:57 AM Subject: [PHP] Finding linefeeds in Strings String functions like explode, strpos or str_replace seem to fail when asked to work with "\n". What can i do to tokenize or explode a string by linefeeds? i replaced "\n" by another expression and it seems to work, but i'm curious if there's a mor elegant solution... cu Jens -- Grüße aus dem schönen Kleve Jens Kisters rosomm et partner Agentur für neue Medien GmbH Dienstleistungszentrum am Weißen Tor - Eingang B Gocher Landstrasse 2 47551 Kleve / Bedburg-Hau Telefon: 02821 - 97856-20 Telefax: 02821 - 97856-77 j.kisters@rosomm-partner.de http://www.rosomm-partner.de -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#46723) next »