Re: Simple question that I can't find the answer to
| From: | Sean Bright | Date: | Sat, 13 Jan 2001 18:01:14 +0000 |
| Subject: | Re: Simple question that I can't find the answer to | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-4974@lists.php.net to get a copy of this message | ||
Yeah, but you could run into overflow problems with large values of a
and b.
Sean
Jan Walter wrote:
>
> If you are working with numbers, which is perhaps not your case, you can use
> this simple trick to swith values of $a and $b:
>
> $a = $a + $b;
> $b = $a - $b;
> $a = $a - $b;
> --
> __________________________________________________________________________________________
>
> ==========================================================================================
>
> Jan Walter, called John
> LERACH, s.r.o.
> phone nr. work: +420-2-78 22 619, home: +420-2-35 35 27 61
> on emergency call cell phone: +420-602-385 760
> work e-mail mailto:Jan.Walter@lerach.cz
> private e-mail mailto:john@lerach.cz
> ICQ#: 28353428
> __________________________________________________________________________________________
>
> ==========================================================================================
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net