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
What is the difference between php4 and php5?
Why do you need to filter out empty files?
What is the use of Php variables?
Can we extend two classes in php?
Why do we use session?
What is the function func_num_args() used for?
How to concatenate two strings in php?
When do sessions end?
Why does php start with variables?
What is meant by PEAR in PHP?
What does session start do in php?
Why is php used for web development?
What is rest api in php?
What are default session time and path?
Why do we use htaccess