How to see what browser a user is using?
===

Due to the CSS3 and HTML5, I would like to check what browser the visitor is using. What is the best way of doing that? I know that most ways screw up certain checks, for example phones or tablets, as well as some uncommon browsers, but there ought to be a way to get that information properly?