Re: Is it possible???
| From: | Stuart Dallas | Date: | Mon, 24 Jun 2013 12:01:40 +0000 |
| Subject: | Re: Is it possible??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-321469@lists.php.net to get a copy of this message | ||
On 24 Jun 2013, at 12:59, Karl-Arne Gjersøyen <karlarneg@gmail.com> 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!
Because you're using $item_amount_in_store and $update_item_amount_in_store as if PHP should
know you mean the same thing.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/