/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function getBrowser(){ $browsers = "mozilla msie gecko firefox konqueror safari chrome netscape opera mosaic lynx camino amaya omniweb"; $browser = $browsers[$i]; $return["long_version"] = ""; $return["navigator"] = $browser; if($return['navigator'] == "safari"){ $return['version'] = $temp[0]; } else { for (; $j<=$l; $j++){ $return["long_version"] .= $s; $return['version'] = $temp[0]; } else { break; } } } } } } return $return; }
Comments
