文件名称:numbers.php-master数字PHP库.zip
文件大小:41KB
文件格式:ZIP
更新时间:2022-07-31 04:51:19
类库下载-numbers.php-master数字PHP库
<?php require_once(__DIR__ . '/../vendor/autoload.php'); // Let's consider some really basic examples. echo '
'; // Adding up elements in an array. But wait! First we need an array... // Let's get a random sample of 50 values, in the range 0, 100. $random = NumbersPHP\Statistic::randomSample(0, 100, 50); echo 'Random = {' . implode(', ', $random) . "}\n"; // Add them up... $sum = NumbersPHP\Basic::sum($random); echo 'Sum of Random = ' . $sum . "\n"; // We can do some other cool stuff as well. Like find the GCD between // two integers. $gcd = NumbersPHP\Basic::gcd(100, 10); echo 'GCD amongst 100 and 10 = ' . $gcd; echo '';如果你需要处理很多条数字数据,那么你一定能用得到本库。
【文件预览】:
numbers.php-master数字PHP库
----php中文网下载站.url(114B)
----php中文网免费下载站.txt(219B)
----numbers.php-master()
--------.gitignore(65B)
--------README.md(4KB)
--------test.cmd(525B)
--------test()
--------examples()
--------LICENSE(10KB)
--------composer.json(589B)
--------phpunit.xml.dist(611B)
--------lib()