1 2 3 4
This ststs extension for PHP provides few dozens routines for statistical computation. WWW: http://pecl.php.net/package/stats/