PHP code example of antikirra / probability
1. Go to this page and download the library: Download antikirra/probability 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/ */
antikirra / probability example snippets
use function Antikirra\probability;
($payload);
}
use function Antikirra\probability;
R'])) { // or probability(0.15, (string)$userId)
$app->feature('#1337')->enable();
}
use function Antikirra\probability;
. $_SERVER['REMOTE_ADDR'])) {
$app->feature('#1337')->enable();
}
if (probability(0.15, 'feature_#2517_for' . $_SERVER['REMOTE_ADDR'])) {
$app->feature('#2517')->enable();
}