Diode"/> if (preg_match("@.*()@", $article['content'], $matches)) { if (!$alt_text || $alt_text == $article['title'] || strpos($article['title'], $title_text) !== False) { $alt_text = trim($img->getAttribute('alt')); if (!$alt_text || $alt_text == $article['title'] || strpos($article['title'], $title_text) !== false){ // there's both alt and title texts.
alt
click/enter