タイトルが空の場合はループを中断する必要があり、ループ配列を続行します
このようなもの
for($i=0;$i<count($out[0]);$i++){
$title = "$z->extract('<title>','</title>',$data);"
if (empty($title)) {
break; // Don't continue the sentences below and continuw the next value from the loop
}
//more sentences php
//more sentences php
//more sentences php
//more sentences php
}
ありがとう。