How can we get the browser properties using PHP?

Answers were Sorted based on User's Feedback



How can we get the browser properties using PHP?..

Answer / anand wankhede

Just write it as $_SERVER['HTTP_USER_AGENT'].

Is This Answer Correct ?    9 Yes 0 No

How can we get the browser properties using PHP?..

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

How can we get the browser properties using PHP?..

Answer / shivaganesh

using $_server['HTTP_USER_AGENT']

Is This Answer Correct ?    3 Yes 1 No

How can we get the browser properties using PHP?..

Answer / pappu kumar sharma

$browser = get_browser(null, true);
print_r($browser);

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More PHP Interview Questions

Can you specify the "new line" character in single-quoted strings?

0 Answers  


When to use get and post request?

0 Answers  


How to display your correct URL of the current web page?

0 Answers  


What are the new features in php 7?

0 Answers  


In php how can you jump in to and out of "php mode"?

0 Answers  


What is the different between count() and sizeof() in php?

0 Answers  


What is traits? How it is used in php?

0 Answers  


What is apache and php?

0 Answers  


What are the difference between include_once & Require_once?

2 Answers  


Why do we use inheritance in php?

0 Answers  


What is the use of $_server and $_env?

0 Answers  


What is php crud api?

0 Answers  


Categories