(.*?)<\/title>/is', $html, $title_match); $title = !empty($title_match[1]) ? html_entity_decode(trim($title_match[1]), ENT_QUOTES, 'UTF-8') : "Página sem título"; preg_match('/ $title, 'description' => $description, 'url' => $file, 'display_url' => pathinfo($file, PATHINFO_FILENAME) // Remove a extensão para exibição ]; } usort($pages, function($a, $b) { return strcasecmp($a['title'], $b['title']); }); if (!empty($pages)) { file_put_contents($cache_file, serialize($pages)); } } ?>

Nenhuma página encontrada.