PHP code example of yadakhov / sportsodd
1. Go to this page and download the library: Download yadakhov/sportsodd 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/ */
yadakhov / sportsodd example snippets
use YadaKhov\SportsOdd;
foreach (range(-4000, -101) as $american) {
echo "$american | " . SportsOdd::americanToDecimal($american) . PHP_EOL;
}
foreach (range(100, 4000) as $american) {
echo "$american | " . SportsOdd::americanToDecimal($american) . PHP_EOL;
}
php example.php