Hudzilla.org - the homepage of Paul Hudson PHP and PHP
Contents > Functions Wish List | Report Bug | About Me ]

4.6     Mathematics

NOTE: This is NOT the latest copy of this book; click here for the latest version.

PHP has a great number of mathematical functions ready for you to use, as well as several constants for popular numbers so you do not have to calculate them yourself.

Nearly all of he functions can be grouped into three areas: rounding, randomisation, and conversion. Naturally some of these functions are only useful to people with a specific interest in mathematics, but, happily, the majority of these functions come into the conversion group.



<< 4.5.4 Converting from components: mktime()   4.6.1 Rounding: ceil(), floor(), and round() >>
Table of Contents
Top-right shadow
 
Bottom-left shadow Bottom shadow