How to convert a string into base64 in PHP | PHP programs
We will convert a string into base64 using base64_encode() function.
<?php
$text = "www.tutorialslink.com";
$base64 = base64_encode($text);
printf("Base64: [%s]", $base64);
?>

We will convert a string into base64 using base64_encode() function.
<?php
$text = "www.tutorialslink.com";
$base64 = base64_encode($text);
printf("Base64: [%s]", $base64);
?>

This is an official account managed by the team TutorialsLink Community