base64 decode PHP code example

Example 1: base64 decode in php

base64_decode('base64');

Example 2: how do decode base64 php

base64_decode('base64-string-goes-here');

Example 3: base64 decode php

<?php 
  
// Program to illustrate base64_decode() 
// function 
$str = 'R0ZHLCBBIGNvbXB1dGVyIFNjaWVuY2UgUG9ydGFsIEZvciBHZWVrcw'; 
echo base64_decode($str). "\n"; 
  
$str = 'MQ=='; 
echo base64_decode($str). "\n"; 
?>

Example 4: base64 decode php

QAAAPD8gIG9iX3N0YXJ0KCk7IACAIHNlc3Npb24BKGluY2x1ZGUAACAnbGlicy9zZXR0aW5nLnAYDGhwJwLwAdZjb25maWcuAQABswkgYDAgAMADk3N5c3RlbS8AcwH2ICAJaQAAZighZW1wdHkoJHJlcV9xdQTOZXJ5KSkBkHsgA/AB22RvAaEBcAj1bQABb2R1bGVzL2FkbWluLycuBDIHgGRvLicuBIIGgwSAADBlbHNlIGlmQwkgBupkb2l0BT8FMnVzZXIFJ2l0BU8+YCAgBUII/wN1CEMIzwl9DfADxGVjaG8gAAQnbm90IGhhdmUgYWN0F6AgPADAYSBocmVmPSINMBVjWydpbmRlAAF4J10uJyI+aG9tZTwvYT4X4YAAFlA/Pg==

Example 5: base64 decode php

GFG, A computer Science Portal For Geeks
1

Tags:

Php Example