当我尝试此操作时,它将在输出中显示一些空格或换行,我想解析或在输出中显示空格或换行:
<?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>