Marshalls

    Category: Core

    Data transformation (marshalling) and encoding helpers.

    • base64_to_raw ( String base64_str )

    Returns of a given base64 encoded String.


    Returns utf8 String of a given base64 encoded String.


    • Variant base64_to_variant ( base64_str, bool allow_objects=false )

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


    Returns base64 encoded String of a given .



    • String variant_to_base64 ( variant, bool full_objects=false )

    Returns base64 encoded String of a given . When is encoding objects is allowed (and can potentially include code).