Base64 decode function in PHP


  1. <?php
  2. $str ="VGhpcyBpcyBteSBmaXJzdCBhcHBsaWNhdGlvbiBpbiBwaHA=";
  3. $decode_data = base64_decode($str);
  4. echo $decode_data;
  5. /*Output */
  6. Result :- This is my first application in php
  7. ?>