When I try this, it will show some spaces or new lines in output, i want to parse or empty spaces and new lines in output:
<?php
$inner_width = "<script>document.write(innerWidth);</script>";
if($inner_width < 800){
$hashtag = '#focus';
}else{
$hashtag = '';
}
?>
<a href='mywebsite/items.php?cat=2<?php $hashtag; ?>'>Item 2</a>