RE: diffence between two numbers...

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

 



Tristan.Pretty@xxxxxxxxxxxxxxxx <mailto:Tristan.Pretty@xxxxxxxxxxxxxxxx>
    on Friday, April 15, 2005 3:35 AM said:

> $a = 7;
> $b = 27;
> somefunction($a, $b)
> // outputs "20"

> etc...
> does that exist?

function difference($a, $b)
{
	return abs($a-$b);
}



Chris.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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