foreach arr_res as arr_id foreach compaign_arr data as compaign if arr

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
foreach($arr_res as $arr_id){
foreach($compaign_arr['data'] as $n => $compaign){
if($arr_id == $compaign['list_id'] && $compaign['status'] == 'sent'){
echo $compaign['id']."\n";
echo $compaign['archive_url_long']."\n";
$full_html = str_get_html(wget($compaign['archive_url_long']));
$content = preg_match('|<div>(.*?)</div>|is',$full_html->innertext, $matches);
$clean_content = str_get_html($matches[1]);
$querys[] = array($compaign['id'], $full_html->find('h1',0)->plaintext, $clean_content->innertext);
break;
}
}
}