beautiful json encode

    0

    0

    jvit

    This function encodes the data as JSON, and returns the prettified JSON string.

    Shortcut: json.beatifulEncode

    /**
    * beautiful json encode
    */
    function jsonEncodePrettify($data)
    {
      return json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
    }
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.