if-problem with dot
<p>Following code:</p>

<pre><code>&lt;?php
$str = "19.09.02";
if(substr($str, -3, 2) == ".0")
{
    // Doing something
}

$str2 = "19.09.2002";
if(substr($str2, -3, 2) == ".0")
{
    // Doing something
}
?&gt;
</code></pre>

<p>Why does the second statement apply (without regexp)? and how can I solve, that it just apply the first expression?</p>

<p>Thank you</p>
