Re: [PHP] Is it possible???

[email protected] (raphael khaiat)
Newsgroups php.general
Message-ID <CAOq2-0bRhB3XRqqbaOiv=OxNmZvCjSqig-CeBfzNmAgi_G3e1A@mail.gmail.com>
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 <[email protected]>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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.