Why does my PHP string comparison fail?
<p>I have the following snippet of code</p>

<pre><code>if ($summary == "CFD funding Interest Paid" ||
    $summary == "Commissions" ||
    $summary == "Closing trades") {
    print $summary.",".$date.",".$reference.",".$description.",".$amount."&lt;br&gt;";  
}
else {
    print $summary."*&lt;br&gt;";
}
</code></pre>

<p>It outputs the following</p>

<pre>
Commissions*
Commissions*
Closing trades*
Commissions*
Closing trades*
</pre>

<p>How come the strings do not appear to be matching?</p>
