Code to parse user agent string?

Posted by Spot on Stack Overflow See other posts from Stack Overflow or by Spot
Published on 2010-01-23T10:12:10Z Indexed on 2010/03/28 22:13 UTC
Read the original article Hit count: 286

Filed under:
|
|
|

As strange as I find this, I have not been able to find a good PHP function anywhere which will do an intelligent parse of a user agent string? Googled it for about 20 minutes now.

I have the string already, I just need something that will chop it up and give me at least browser/ver/os.

Know of a good snippet anywhere?

© Stack Overflow or respective owner

Related posts about php

Related posts about user-agent