PHP base64_decode Function: Usage Guide
The base64_decode function is used to decode a string encoded using base64. It takes the base64 encoded string as a parameter and returns the original decoded string.
For example, here is a sample using the base64_decode function:
$encoded_string = "SGVsbG8gV29ybGQh"; // base64编码的字符串
$decoded_string = base64_decode($encoded_string);
echo $decoded_string; // 输出:Hello World!
In the example above, we pass a base64 encoded string to the base64_decode function and store the decoded original string in the $decoded_string variable. Finally, we output the decoded string “Hello World!”.