php base64_decode encoding issue code example
Example 1: base64 decode in php
base64_decode('base64');
Example 2: base64 decode php
<?php
// Program to illustrate base64_decode()
// function
$str = 'R0ZHLCBBIGNvbXB1dGVyIFNjaWVuY2UgUG9ydGFsIEZvciBHZWVrcw';
echo base64_decode($str). "\n";
$str = 'MQ==';
echo base64_decode($str). "\n";
?>