I want to find a particular matches of strings (want to find middle string by giving parameters start and end string ) from an HTML file i used the following code
$string = " ".$ipt;
$ini = strpos($string,$start);
if ($ini == 0) return "";
$ini += strlen($start);
$len = strpos($string,$end,$ini) - $ini;
return substr($string,$ini,$len);
it can find the middle sting but it can only return 1 match from HTML file i want all possible matches PLEASE HELP ME
starting string is - <div class="product">
end is - <br class="no">