<?php 
 
    /* 
    * This file is part of the php-openssl-proxy. 
    * 
    * (c) Adão Pedro <[email protected]> 
    * 
    * For the full copyright and license information, please view the LICENSE 
    * file that was distributed with this source code. 
    */ 
 
    /** 
     * Encode a data to a base64 
     */ 
    function toBase64(mixed $data): string { 
        return \base64_encode($data); 
    }
 
 |