RE: [PHP] newline in string

2002-10-13 Thread John W. Holmes
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 And do what when you find them? If you just want to

Re: [PHP] newline in string

2002-10-13 Thread Jason Wong
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

Re: [PHP] newline in string

2002-10-13 Thread Shawn McKenzie
Thanks everyone. I'' be breaking the string after the newline so that I can convert the html to php echos and write them to a file. -Shawn John W. Holmes [EMAIL PROTECTED] wrote in message 000d01c272c1$54d0$7c02a8c0@coconut">news:000d01c272c1$54d0$7c02a8c0@coconut... I have loaded an