"i486", "i686" => "i686", "pentium4" => "pentium4", "any" => "any" ); } } else { $archs = array("i686" => "i686", "pentium4" => "pentium4", "any" => "any"); } function encode_arch($a) { return "arch=" . urlencode($a); } $sarch_param = implode("&",array_map('encode_arch',$archs)); $march_param = ""; if ($sarch_param != "") { $march_param = "&" . $sarch_param; $sarch_param = "?" . $sarch_param; } ?>