Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

browser name in php?

Tags:

browser

php

How can we get Browser Name and Version information using php script?

like image 916
Karandeep Singh Avatar asked Mar 06 '26 19:03

Karandeep Singh


2 Answers

<?php 
 echo $_SERVER['HTTP_USER_AGENT'];
 ?> 

As Palantir says, additionally have a look at the get_browser function, where you can check also capabilities enabled in the browser.

like image 185
pakore Avatar answered Mar 08 '26 07:03

pakore


http://php.net/manual/en/function.get-browser.php

like image 39
Palantir Avatar answered Mar 08 '26 09:03

Palantir



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!