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
How does php and apache work?
What is csrf mvc?
Is php secure?
What is a stored procedure in mysql?
What is api example?
How can we check the value of a given variable is a number?
What is the meaning of php?
What is meant by variable variables in php?
Tell me what does $_env means?
Which function will you use to create an array?
What is mysql_fetch_object?
What is the difference between apache and tomcat?
What are the different components used in php for formatting?
What are computer variables?
How to set a page as a home page in a php based site?