Javascriptの値をphpに渡す

<?php
$s_width = '<script>document.write(screen.width);</script>';
echo $s_width;