PHP code example of pengzeng / sixtwo

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

    

pengzeng / sixtwo example snippets

bash
$fuck = new Sixtwo();
$number = mt_rand(1,9999999999);
echo '原数:'.$number.'<br>';
$str = $fuck->int2str($number);
echo '字符:'.$str.'<br>';
$number1 = $fuck->str2int($str);
echo '还原:'.$number1.'<br>';