I use file_get_content
to get content of a website. This gets all the content but I only need content in <div class="nomal">
tag in content I get. It have some <div class="nomal">
tag I need get all <div class="nomal">
tag. My function:
function get_need_content($str, $strstart, $strend){
$new_startstr = strpos($str, $strstart);
$new_strend = strpos($str, $strend);
echo $final_str=substr($str, $new_startstr, $new_strend );
}
this function only get one in all <div class="nomal">
tag. I need to get all.