PHP code example of pccomponentes / lexicographic-ranking
1. Go to this page and download the library: Download pccomponentes/lexicographic-ranking 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/ */
pccomponentes / lexicographic-ranking example snippets
$calculator = new RankingCalculator(
new Alpha36TokenSet(),
new DynamicMidPosition()
);
echo $calculator->between('A', 'B'); // AU
echo $calculator->between('F6', 'Z'); // P
echo $calculator->between('FB', 'FW'); // FL
echo $calculator->between(null, '7'); // 3
echo $calculator->between(null, null); // U