How do you get the Browser information?
Answer Posted / jahanvi
get_browser() attempts to determine the capabilities of the
user's browser. This is done by looking up the browser's
information in the browscap.ini file.
echo $_SERVER['HTTP_USER_AGENT'] . "<hr />\n";
$browser = get_browser();
foreach ($browser as $name => $value) {
echo "<b>$name</b> $value <br />\n";
}
| Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
How to test if a variable is an array?
What is php oop?
Which is the dependent variable?
Explain why would we use === instead of ==?
Where can I find php ini file?
Tell me what are sql injections, how do you prevent them and what are the best practices?
What is the name of scripting engine in php?
What is mean by an associative array?
How long does a php session last for?
How can we access the data sent through the url with the post method?
Explain include(), include_once, require() and require_once?
What is $$ in php?
What is php addslashes?
Suppose your zend engine supports the mode ?> Then how can you configure your php zend engine to support Mode ?
What is abstraction php?