This php code snippet will tell you the general device type, a visitor to your website, is using. There are much larger php scripts out there if you really want to get more specific with the exact type of device the website visitor is using.