Re: newline in string

From: Date: Sun, 13 Oct 2002 09:47:53 +0000
Subject: Re: newline in string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-119776@lists.php.net to get a copy of this message
On Sunday 13 October 2002 17:24, Shawn McKenzie wrote: > I have loaded an html file into a string. How can I search the string for > newlines/linefeeds? I know they are there, because if I echo the string and > view source in the browser, some tags are on new lines. > > Example: > <html> > > <head> > </head> Search for "\r" and "\n" for linefeeds and newlines respectively. Note you must use double-quotes. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* From the cradle to the coffin underwear comes first. -- Bertolt Brecht */

« previous php.general (#119776) next »