You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
think-library/src/facade/Arrays.php

51 lines
2.0 KiB

2 years ago
<?php
// +----------------------------------------------------------------------
// | ThinkLibrary 6.0 for ThinkPhP 6.0
// +----------------------------------------------------------------------
// | 版权所有 2017~2020 [ https://www.dtapp.net ]
// +----------------------------------------------------------------------
// | 官方网站: https://gitee.com/liguangchun/ThinkLibrary
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// +----------------------------------------------------------------------
// | gitee 仓库地址 https://gitee.com/liguangchun/ThinkLibrary
// | github 仓库地址 https://github.com/GC0202/ThinkLibrary
// | Packagist 地址 https://packagist.org/packages/liguangchun/think-library
// +----------------------------------------------------------------------
declare (strict_types=1);
namespace DtApp\ThinkLibrary\facade;
use DtApp\ThinkLibrary\helper\Arrays as helper;
use think\Facade;
/**
* 数组门面
* @see \DtApp\ThinkLibrary\helper\Arrays
* @package DtApp\ThinkLibrary\facade
* @package think\facade
* @mixin helper
*
* @method static mixed rand(array $array) 数组随机返回一个下标
* @method static mixed randValue(array $array) mixed 数组随机返回一个值
* @method static array split(array $array, $num = 5) 分隔数组
* @method static array unique(array $array) 多维数组去重
* @method static array sort(array $arrays, string $sort_key, $sort_order = SORT_ASC, $sort_type = SORT_NUMERIC) 二维数组根据某个键排序
* @method static array trimArray(array $arr) 数组删除空格
* @method static array toArray($output) 把json字符串或json对象转json数组
*/
class Arrays extends Facade
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return helper::class;
}
}