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
Explain what are some new features introduced in php7?
What is the difference between require and include in php?
How do I find out the number of parameters passed into function9?
What does the function get_magic_quotes_gpc() means?
What is the delimiter syntax is PHP's default delimiter syntax
What is difference between mysql_fetch_array and mysql_fetch_assoc?
armstrong number by using php while number is given by the keyboard.?
What is the maximum size of a table in mysql?
How to pad an array with the same value multiple times?
Is age interval or ordinal?
What is a persistence cookie?
How do you check if a variable has been set in php?
Is php used for frontend or backend?
What kind of things have you done on the social side?
How to track user logged out or not? When user is idle?