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
Where are php configuration settings stored?
Explain how to submit form without a submit button.
What is php variable?
What is the difference between array_pop() and array_push()?
What is a static variable in php?
What is encapsulation in php?
How can we display information of a variable and readable by human with php?
What the difference between the 'bitwise and' operator and the 'logical and' operator?
What is php and features of php?
How does csrf attack work?
What are php data types?
How are variables declared in php?
Do csrf tokens expire?
What is the main function of php?
Why post method is used in php?