Marshalls

    Data transformation (marshalling) and encoding helpers.

    Provides data transformation and encoding utility functions.

    • base64_to_raw ( String base64_str )

    Returns a decoded corresponding to the Base64-encoded string .


    • String base64_to_utf8 ( base64_str )

    Returns a decoded string corresponding to the Base64-encoded string base64_str.


    Returns a decoded Variant corresponding to the Base64-encoded string base64_str. If is true, decoding objects is allowed.

    Warning: Deserialized objects can contain code which gets executed. Do not use this option if the serialized object comes from untrusted sources to avoid potential security threats such as remote code execution.


    Returns a Base64-encoded string of a given .


    • String utf8_to_base64 ( utf8_str )

    Returns a Base64-encoded string of the UTF-8 string utf8_str.