Re: my math stinks

From: Date: Sun, 10 Feb 2002 19:22:16 +0000
Subject: Re: my math stinks
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-84182@lists.php.net to get a copy of this message
$answer = abs($pa - $pb) + $ca +$ps; No ifs :) Maybe I'm lazy, but I like 1 line statements Andrew ----- Original Message ----- From: "Gary" <garyb10@earthlink.net> To: <php-general@lists.php.net> Sent: Sunday, February 10, 2002 7:05 PM Subject: [PHP] my math stinks > Hi All, > This is the first time I have had to deal with math. I have gone > through the manual and a few books and I think I am worse off then when > I started. Can someone give me an example of the simple math below. I > think If I see some in code I can move on from there. > > I need to find out if $pa > $pb or $pb > $pa then subtract smallest from > the largest and add $ca and then add $ps > > TIA > Gary > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#84182) next »