i try to get screen width in php using javascript , it is return it in string type . I can't using if statment for chose best ad size for screen
$screenwidth = '<script>
document.write(window.innerWidth)
</script>';
$nu = (int)$screenwidth;
echo $nu;
Any Help