PHP code example of unglud / slot-machine

1. Go to this page and download the library: Download unglud/slot-machine 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/ */

    

unglud / slot-machine example snippets


$slot = new SlotMachine([1000,500,300,200,150,100,60,50,40,1]);
$slot->spin();

/*
array:3 [
  0 => "j"
  1 => "i"
  2 => "d"
]
*/