PHP code example of webmasters / base-converter
1. Go to this page and download the library: Download webmasters/base-converter 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/ */
webmasters / base-converter example snippets
use \Webmasters\Utilities\Numbers\BaseConverter;
BaseConverter::setShifting(999);
$base10 = 1;
$base36 = BaseConverter::toBase36($base10); // 'rs'
$base36 = 'rs';
$base36 = BaseConverter::toBase10($base36); // 1