PHP program to convert a string into base64

bookmark

<?php
//PHP program to convert the string into base64.
$text = "www.includehelp.com";
$base64 = base64_encode($text);
printf("Base64: [%s]", $base64);
?>


Output
Base64: [d3d3LmluY2x1ZGVoZWxwLmNvbQ==]