Encode / Decode Base64 – PHP
With simple PHP function you can encode any string in to base64. It accept any string characters. Syntex base64_encode(string $string): string <?php $base64_encoded_string = base64_encode('ABCDECF"); // return value: QUJDREVDRg== ?> Deccode base64 String <?php $base64_encode_string = "QUJDREVDRg=="; base64_decode($base64_encode_string); // return value: ABCDECF ?>