How do I write $(window).width() to GET PHP variable to compare data

 <?php // условие: если рабочая область окна меньше 800px if ($_GET['window_width'] < 800) { echo 'Недостаточно рабочей области окна'; } else { echo 'Отлично. Я могу вывести вам весь контент'; } 
  • one
    Something you do not want to do. - Visman
  • @Visman and how to check if you want to show this or that content based on the width of the window? - Plush
  • one
    Adaptive design why you do not like? Media queries in css to change the design? - Visman
  • @Visman unfortunately, there is nowhere else to adapt, there is a block that can not be compressed, you can only remove a few elements from it. I plan to do this based on the size of the window. - Plush
  • one

0