Base64 Encode and Decode using PHP

base64_encode & base64_decode functions

<?php

$text = 'Hello';
$base64Str = base64_encode($text);
echo $base64Str.PHP_EOL;

$text = base64_decode($base64Str);
echo $text.PHP_EOL;

Leave a Comment

Cancel reply

Your email address will not be published.