D
D
Daniil Sukhikh2018-03-18 12:43:40
HTML
Daniil Sukhikh, 2018-03-18 12:43:40

How to make php change the code depending on the device and screen size?

How to do something in php like in css the code changes depending on the screen size or device?
For example, if your screen size is more than 800px, then one action was performed, and if it is smaller, then another.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
tigra, 2018-03-18
@tigroid3

a bunch of libraries for device detection, for example mobiledetect.net

S
Sergey, 2018-03-18
@gangstarcj

Complete nonsense. The server should not know anything about the clients

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question