PHP syntax error, unexpected 'if' (T_IF) : <p>I want to make the text red if username == user_id but it gives me a syntax error, unexpected 'if' (T_IF). my code:</p>

<pre><code>foreach ($dag as $taak) {
    echo '&lt;li' if($_SESSION['user_id'] == $taak['username']){ echo 'style="color:red"';}'&gt;'.$taak['taak_naam'].' - '.$taak['username'].'&lt;/li&gt;';
}
</code></pre>

<p>anyone any idea?</p>
