PHP code example of eric-chau / bijective
1. Go to this page and download the library: Download eric-chau/bijective 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/ */
eric-chau / bijective example snippets
ive = new \Jarvis\Math\Bijective();
echo $bijective->alphabet(); // print 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
echo $bijective->encode('64'); // print 'bc'
echo $bijective->decode('ba'); // print '62'
$bijective = new \Jarvis\Math\Bijective('azerty');
echo $bijective->alphabet(); // print 'azerty'