0

Does PHP provide a way to identify whether a user machine is a PC with a mouse and keyboard, or a touchscreen laptop?

1 Answers1

3

+1, Good question. Yes, identifying the user is important for better user experience.

Look into user agent detection. This might help you get started. They analyze the user agent (UA) string the browser sends when making requests. However, detection with PHP is probably limited, and Javascript will have to get involved to fullfill what you want.

There are various ways to detect whether a browser has a feature

Look into conditional html/css/javascript:

Hope this helps you!

Community
  • 1
  • 1