PHP code example of andrewdalpino / okbloomer
1. Go to this page and download the library: Download andrewdalpino/okbloomer 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/ */
andrewdalpino / okbloomer example snippets
use OkBloomer\BloomFilter;
$filter = new BloomFilter(0.01, 4, 32000000);
$filter->insert('foo');
echo $filter->exists('foo');
echo $filter->existsOrInsert('bar');
echo $filter->exists('bar');