> 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 know if there are
newlines in the file, then use strstr(). If you want to remove or
replace them, then use str_replace(). If you want to add in a <br> where
some newlines are, then use nl2br().

---John Holmes...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to