inside a php scripts I have this statement:
$totalamount=$totalamount+20;
where the $totalamount was a integer value in it(not 1), but after this summing statement the $totalamount comes out with 21.
I changed the statement to :
$totalamout=$totalamount;
and the $totalamount become 1.
Can anyone tell me why this statement will turn the initial value of the variable to 1 ?


