User:Cakemix/Snippets/PHP/Print Double Redirects

Prints double redirects (Not done). /", $code, $m)) {           foreach ($m[0] as $value) {                if (preg_match_all("/title=\"(.*?)\"/", $value, $z))                    if (!strpos($z[1][0], "blog"))                        $a[$z[1][0]] = $z[1][3];            }        }        return $a;    }

function GetDoubles { $ch = curl_init; curl_setopt($ch, CURLOPT_URL, "http://callofduty.wikia.com/wiki/Special:DoubleRedirects"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); $data = curl_exec($ch); curl_close($ch); return $data; }

}

$b = new DobuleRedirects; print_r($b->CleanDoubles($b->GetDoubles));