Re: Is it possible???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
Shouldn't it be:

$item_amount_in_store = 223;
$update_amount = 7;
$item_amount_in_store += $update_amount;
$update_amoint_in_store is now 227;

The 3rd line seems wrong as you didn't use the same variable.

--
Raphaël Khaïat
06.72.89.57.29


On Mon, Jun 24, 2013 at 1:59 PM, Karl-Arne Gjersøyen <karlarneg@xxxxxxxxx>wrote:

> $item_amount_in_store = 223;
> $update_amount = 7;
> $update_item_amount_in_store += $update_amount;
> $update_amoint_in_store is now 227;
>
> Why? That should be 230!
>
> Karl
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux