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


Please Help Members By Posting Answers For Below Questions

What is the goto statement useful for?

556


How do you use end in python?

492


What is implode() in php?

613


What is the purpose of $_ session?

519


Which is better session or cookie?

530






How many different types of messages available in php?

549


What version of php do I have windows?

491


What does csrf token mismatch mean?

625


A process can run only in the background. State Whether True or False?

628


What are the different loops in php?

546


What is the difference between core php and php?

505


Is numeric in php?

537


Explain soundex() and metaphone().

580


How can MYSQL functions be available with PHP?

551


What is the use of htmlspecialchars in php?

526