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()
base64_encode(string)
you can see bellow example:
<?php
//here create a variable of string
$string = 'This is an example';
//here call base64_encode()
echo base64_encode($string);
?>
output will come following of above example:
VGhpcyBpcyBhbiBleGFtcGxl
0 Comment(s)