How do you get the Browser information?
Answer Posted / ravi rajendra k
If you need a parser for getting OS, browser name and version details, use this pattern in a preg_match_all function.
$pattern = '#(?<browser>' . join('|', $known) .')[/ ]+(?<version>[0-9]+(?:\.[0-9]+)?)#i';
You can see my article www.peacemax.com/11/php/user-agents-php-snippet where i wrote the entire function for getting those details.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Does php support multiple inheritances?
What is the difference between static and dynamic websites?
How to get the http request in php?
Which function would you use to insert a record into a database in php?
How can we access the data sent through the url with the post method?
How many keywords are there in php?
What is difference between mysqli and mysql?
How many types of session are there?
Write a program to get lcm of two numbers using php?
Is facebook still in php?
Explain the difference between array_merge() and array_combine()?
How does firefox manage cookies?
How to reset/destroy a cookie?
How to get ip address of a server in php?
What is the use of mysql_real_escape_string in php?