PHP code example of lukaszmakuch / math
1. Go to this page and download the library: Download lukaszmakuch/math library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lukaszmakuch / math example snippets
use lukaszmakuch\Math;
//the least common multiple
echo Math::lcm(3, 4); //12
//the greatest common divisor
echo Math::gcd(8, 12); //4