[EMAIL PROTECTED] wrote:

>Is there a way, I can read a html document, look for a <br> tag, print what
>it finds, and stop when it finds the next <br>. If possible I would like to
>do this for the entire document. For example:
>
>Tyler Mace

$html_array=explode('<br>',implode('',file('myfile.html','r')));

file() -> reads the file into an array

implode() -> puts the array into a string (in this case with an empty
separator)

explode() -> divides the string into an array at every occurence of
'<br>'


HTH

Christoph



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

Reply via email to