php showing int variable
<p>I have strange problem, can't understand the reason :</p>

<pre><code>$text1 =str_replace("command",$sum, $commands); 
$file1 = fopen("commands/".$sum.".php" , "w");
</code></pre>

<p>$sum works fine on second command, but not working fine on first. When I check $sum out put, I can see them not equal. 1st line the value of sum is not right, but on second line the value of sum is right . What can be the problem ?</p>
