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

Is not null in php?

520


How to support multiple-page forms?

555


How to remove a file?

603


Explain what are psrs?

504


Is php difficult to learn?

496






What is session_start () in php?

510


Can you explain, when to use if-else if-else over switch statements?

531


Explain how can php and javascript interact?

534


What is delimiter php?

523


Explain a resource?

602


What is php key?

497


Tell me what are magic methods?

526


What is psr in php?

598


What are the advantages of triggers in php?

470


What is the ioncube php loader?

565