Using if and echo statements in the code below is causing a blank whitespace to appear (on line 4 in this instance) when viewing my website's source using Google Chrome:
<ul>
<li>Hi</li>
<li>Hello</li>
<?php
if($something) {
echo'
<li>1</li>
<li>2</li>
';
}else{
echo'
<li>2</li>
<li>1</li>
';
}
?>
</ul>