PHP code example of phplang / base65536

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

    

phplang / base65536 example snippets


use \PhpLang\Base65536;

$buf = 'hello world';
$str = Base65536::encode($buf);
echo $str; // 6 codes points, '驨ꍬ啯𒁷ꍲᕤ'

var_dump($buf === Base65536::decode($str)); // bool(true)