From 8b0efc4fb8745cde6c3f041e2b3c0c4f7ce84f95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Fri, 18 Sep 2026 16:49:31 -0300 Subject: [PATCH] Add examples to Sodium base64 functions - sodium_base642bin() - sodium_bin2base64() --- .../sodium/functions/sodium-base642bin.xml | 75 +++++++++++++++++++ .../sodium/functions/sodium-bin2base64.xml | 53 +++++++++++++ reference/url/functions/base64-decode.xml | 1 + reference/url/functions/base64-encode.xml | 1 + 4 files changed, 130 insertions(+) diff --git a/reference/sodium/functions/sodium-base642bin.xml b/reference/sodium/functions/sodium-base642bin.xml index 28cd02eef742..f9f3e8075d57 100644 --- a/reference/sodium/functions/sodium-base642bin.xml +++ b/reference/sodium/functions/sodium-base642bin.xml @@ -73,6 +73,81 @@ + + &reftitle.examples; + + <function>sodium_base642bin</function> example + + +]]> + + &example.outputs; + + + + + + + Example of the <parameter>id</parameter> parameter + + +]]> + + &example.outputs; + + + + + + + Example of the <parameter>ignore</parameter> parameter + + +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + base64_decode + sodium_bin2base64 + sodium_bin2hex + + + &reftitle.examples; + + <function>sodium_bin2base64</function> example + + +]]> + + &example.outputs; + + + + + + + Example of the <parameter>id</parameter> parameter + + +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + base64_encode + sodium_base642bin + sodium_hex2bin + +