hi!i have a "foreach" loop which i am using to go thur a html file, line by line
eg.
$content= file("html_file.html");
$lines = $content;
foreach ($lines as $line){
}
however, i would like to check each line for a string
for example "<br>" and the exit condition is when "/br>" is present.
do i use an if loop or "is_string"???
in addition to this, how do i get the contents within "<br>" and "</br>" to be appended to a string.
i have tried $appended_string = $appended_string.$appended_string;
thanks in advnace...
eg.
$content= file("html_file.html");
$lines = $content;
foreach ($lines as $line){
}
however, i would like to check each line for a string
for example "<br>" and the exit condition is when "/br>" is present.
do i use an if loop or "is_string"???
in addition to this, how do i get the contents within "<br>" and "</br>" to be appended to a string.
i have tried $appended_string = $appended_string.$appended_string;
thanks in advnace...