JavaScript to PHP Variable - Convert JavaScript variable to PHP variable.
<?php /* after this simple script content of PHP variable $s_wid will be JavaScript variable s_wid - which is screen.width This script found at: https://sanpbuilder.com Free Public Codes Library */ ob_start("stat"); ?> <script language="javascript"> var s_wid = 0 s_wid = screen.width document.write(s_wid); </script> <?php $s_wid = ob_get_contents(); ob_end_flush(); ?>