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/Strings.php

47 lines
1.8 KiB

4 years ago
<?php
// +----------------------------------------------------------------------
// | ThinkLibrary 5.1 for ThinkPhP 5.1
// +----------------------------------------------------------------------
// | 版权所有 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
// +----------------------------------------------------------------------
namespace DtApp\ThinkLibrary\facade;
4 years ago
use DtApp\ThinkLibrary\helper\Strings as helper;
4 years ago
use think\facade;
/**
* 字符串门面
4 years ago
* Class Strings
4 years ago
* @see \DtApp\ThinkLibrary\Str
* @package think\facade
4 years ago
* @mixin helper
4 years ago
*
4 years ago
* @method helper extractBefore(string $str, int $start_num, int $end_num) bool|false|string 截取字符串前面n个字符
* @method helper extractRear(string $str, int $num) false|string 截取字符串最后n个字符
* @method helper filter(string $str) string 过滤字符串
* @method helper exitContain(string $str, $nee = 3, $del = ',') bool 判断字符串是否包含某个字符
* @method helper len(string $str) int 统计字符串长度
4 years ago
*/
4 years ago
class Strings extends Facade
4 years ago
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
4 years ago
return helper::class;
4 years ago
}
}