How can we get the browser properties using PHP?
Answers were Sorted based on User's Feedback
Answer / anand wankhede
Just write it as $_SERVER['HTTP_USER_AGENT'].
Is This Answer Correct ? | 9 Yes | 0 No |
Answer / pritam m
get_browser(string user_agent, bool return_array)
this function returns the browser info , but for this it depend upon the user and also the 'browscap' parameter need to set to point to the correct location of browscap.ini on your system.
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / pappu kumar sharma
$browser = get_browser(null, true);
print_r($browser);
Is This Answer Correct ? | 3 Yes | 2 No |
Can you specify the "new line" character in single-quoted strings?
When to use get and post request?
How to display your correct URL of the current web page?
What are the new features in php 7?
In php how can you jump in to and out of "php mode"?
What is the different between count() and sizeof() in php?
What is traits? How it is used in php?
What is apache and php?
What are the difference between include_once & Require_once?
Why do we use inheritance in php?
What is the use of $_server and $_env?
What is php crud api?