PHP Manual
This manual is provided as a courtesy. It is not an official source. Please check php.net for updated information.
Remember basic arithmetic from school? These work just like those.
Table 15-2. Arithmetic Operators
The division operator ("/") returns a float value anytime, even if the two operands are integers (or strings that get converted to integers).
Note: Remainder $a % $b is negative for negative $a.
See also the manual page on Math functions.