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 |
How many types of inheritances used in php and how we achieve it.
Tell me what is the difference between characters 34 and x34?
What is php and why we use it?
How can we extract string 'abc.com' from a string "http://info@abc.com" using regular expression of PHP
Tell me what are the functions to be used to get the image's properties (size, width and height)?
What is the difference between ereg_replace() and eregi_replace()?
What does nan stand for computer science?
How to replace a substring in a given string?
What is the difference between echo, print and printf()?
What is the main difference between require() and include()?
display selected value in dropdown list through javascript without page refresh
Explain me what are the 3 scope levels available in php and how would you define them?