我需要打破循環,如果標題爲空,然後繼續循環陣列打破然後繼續循環
這個東西
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
}
感謝等。