How to detect tablet devices with php

The easy way to detect mobile or tablet devices is using javascript – we know the width and height of the tablet is bigger than the mobile and so the only currently quick solution is to identify the tablet with its width and height. It is highly useful and recommended to detect mobile devices that are larger than smartphones because often it is preferable to render the desktop version of a site rather than the mobile version.
read more »