Simple Math with PHP

Posted: February 28, 2009

PHP has built-in math functionality for most of your mathematical desires.  Here are a few of the common math operators and what they do:

+      adds numbers
-    subtracts
*    multiplies
/    divides
%    modulus (the remainder of a division)
Read the rest of this entry »