• 此项目
    • 正在载入...
  • 登录

竞泽 / top-warehouse · 文件

转到一个项目

GitLab

  • 转到仪表盘
  • 项目
  • 活动
  • 文件
  • 提交
  • 管道 0
  • 构建 0
  • 图表
  • 里程碑
  • 问题 0
  • 合并请求 0
  • 成员
  • 标记
  • 维基
  • 派生
  • 网络
  • 创建新的问题
  • top-warehouse
  • src
  • Utils
  • Json.php
  • add all
    8849a89b
    竞泽 在
    2021-06-16 11:57:03 +0800
    提交 浏览目录 »
Json.php 397 字节
原文件 审查 历史 永久链接
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<?php


namespace lackoxygen\TopWarehouse\Utils;


class Json
{
    public static function encode($array, int $flags = JSON_UNESCAPED_UNICODE, int $depth = 512)
    {
        return json_encode($array, $flags, $depth);
    }

    public static function decode(string $json, ?bool $associative = true, int $depth = 512): array
    {
        return json_decode($json, $associative, $depth);
    }
}