Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • What is process to use base64_encode() in PHP ?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 200
    Comment on it

    Hi Reader's,
    Welcome to FindNerd, today we are going to discuss How to use base64_encode() in PHP ?

    So,basically base64_encode() is used for converting any string into MIME base64.

    If you want to convert any string into MIME base64 then base64_encode() function is very useful and simple process to convert.
    base64_encode() is a way of encoding arbitrary binary data in ASCII text.

    syntax of base64_encode()

      base64_encode(string) 
    

    you can see bellow example:

    <?php
      //here create a varaible of string
      $string = 'This is an example to convert into MIME base64';
      //here call base64_encode()
      echo base64_encode($string);
    ?>
    

    output will come following of above example:

    VGhpcyBpcyBhbiBleGFtcGxlIHRvIGNvbnZlcnQgaW50byBNSU1FIGJhc2U2NA
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: