PHP variable not incremented
<p>I have a small code as part of a huge file as follows:</p>

<pre><code>if(($lastLogTime + $logOffset)&gt;= $text1)
{
    echo $text1.'&lt;br&gt;';

    $uptime=$uptime + (($text1 - $lastLogTime)/60000);
    echo ($text1 - $lastLogTime).'&lt;br&gt;';
    fwrite($fd, $uptime.',');
    echo $uptime.'&lt;br&gt;&lt;br&gt;';

    $lastLogTime = ($lastLogTime + 1800000);
    echo $lastLogTime.' ME &lt;br&gt;';
}
</code></pre>

<p>The weird part is the output for the final <code>$lastLogTime</code> is NOT getting added by the <code>1800000</code> OR a variable called <code>$logInterval = 1800000</code> which was initialized earlier.</p>

<p>The output is</p>

<pre><code>1298083876650     -  i.e lastLogtime
1298083877661     - text1

1011              - the difference
0.01685           - uptime

1298085676650 ME  - damn ! doesn't get added by 1800000
</code></pre>

<p>NEW EDIT :</p>

<p>I solved it ! bad answers guys.. Thanks for the time anyways.</p>

<p>Am i the only one facing weird shhit like this ?</p>
