How to detect browser in PHP

To detect browser in PHP you can use the following snippet.

Sample PHP

$userAgent = $_SERVER ['HTTP_USER_AGENT'];

Please Share us:
Please rate this snippet

4 thoughts on “How to detect browser in PHP

Leave a Reply