Jump to content

browser detection to just show, Internet Explorer, Safari, Firefox, etc.


brem13

Recommended Posts

hey, im using the $_SERVER['HTTP_USER_AGENT']; code to find the users browser.

now, i get "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-us) AppleWebKit/533.21.1 (KHTML, like Gecko) Version/5.0.5 Safari/533.21.1". when i run the script

how would i use preg match, to just get the 'Safari' from that???

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.