base64_encode & base64_decode functions
<?php
$text = 'Hello';
$base64Str = base64_encode($text);
echo $base64Str.PHP_EOL;
$text = base64_decode($base64Str);
echo $text.PHP_EOL;
<?php
$text = 'Hello';
$base64Str = base64_encode($text);
echo $base64Str.PHP_EOL;
$text = base64_decode($base64Str);
echo $text.PHP_EOL;
Leave a Comment
Cancel reply