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

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 134
    Comment on it

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

    If you want to convert any string into MIME base64 then base64_encode() function is very useful and simple process

    let see syntax of base64_encode()

    1. base64_encode(string)

    you can see bellow example:

    1. <?php
    2. //here create a variable of string
    3. $string = 'This is an example';
    4. //here call base64_encode()
    5. echo base64_encode($string);
    6. ?>

    output will come following of above example:

    1. VGhpcyBpcyBhbiBleGFtcGxl

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: