/ Published in: PHP
Encodes the given data with MIME base64. Base64-encoded data takes about 33% more space than the original data.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function base64url_encode ($text){ ($text); return $base64url; } function base64url_decode ($text){ ($base64url); return $base64; } ?>
URL: http://www.apphp.com/index.php?snippet=php-base64-encode-and-decode-string