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
What is the goto statement useful for?
How do you use end in python?
What is implode() in php?
What is the purpose of $_ session?
Which is better session or cookie?
How many different types of messages available in php?
What version of php do I have windows?
What does csrf token mismatch mean?
A process can run only in the background. State Whether True or False?
What are the different loops in php?
What is the difference between core php and php?
Is numeric in php?
Explain soundex() and metaphone().
How can MYSQL functions be available with PHP?
What is the use of htmlspecialchars in php?