base64_decode()
function base64_decode(string $string, bool $strict = false): mixed
Decodes a Base64-encoded string back into its original data.
Parameters:
$string(string)$strict(bool), defaultfalse, optional
Returns: mixed
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/string/base64_decode.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how base64_decode is implemented in the compiler, see the internals page.