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

What are helpers in php?

0 Answers  


What is the use of Php variables?

0 Answers  


How to join multiple strings stored in an array into a single string?

0 Answers  


How long is session timeout?

0 Answers  


What is a string in php?

0 Answers  






What are the rules for naming a php variable?

0 Answers  


What advance thing in php7?

0 Answers  


Explain the difference b/w static and dynamic websites?

0 Answers  


What is the diffrence between GET,POST and REQUEST Method.

7 Answers   Acquity Software,


Is php is dying?

0 Answers  


How can I prevent sql-injection in php?

0 Answers  


Explain the changes in php versions?

0 Answers  


Categories