Answers for "base64 encode with signature in php"

PHP
1

base64 encode username password php example

$auth = base64_encode($uname . ":" . $pass);
curl_setopt($curl, CURLOPT_HTTPHEADER, array("Authorization: Basic $auth",
                                              "Accept: application/json",
                                              "Content-Type: application/json"));
Posted by: Guest on September-23-2020
0

base64 enocode php

<?php
$str = 'VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==';
echo base64_decode($str);
?>
Posted by: Guest on October-13-2021

Browse Popular Code Answers by Language