PHP code example of ivebe / tombola
1. Go to this page and download the library: Download ivebe/tombola 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/ */
ivebe / tombola example snippets
use Ivebe\Tombola\Table;
$table = new Table();
$table->generate();
$table->prettyPrint();
use Ivebe\Tombola\Table;
$table = new Table();
$table->generate();
foreach( $table->getTickets() as $ticket ){
$numbers = $ticket->getNumbers();
//do something with it
}
use Ivebe\Tombola\Table;
use Ivebe\Tombola\Test;
$table = new Table();
$table->generate();
$tickets = $table->getTickets();
var_dump(Test::verify($tickets));