ibibicloud / thinkphp8-helper
基于think-helper=v3.1.11
0.0.1
2025-04-11 01:32 UTC
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2025-04-11 01:49:34 UTC
README
基于 https://github.com/top-think/think-helper/tree/v3.1.11
安装
composer require ibibicloud/thinkphp8-helper
Str 字符串操作
// 检查字符串中是否包含某些字符串
\think\helper\Str::contains($haystack, $needles)
// 检查字符串是否以某些字符串结尾
\think\helper\Str::endsWith($haystack, $needles)
// 获取指定长度的随机字母数字组合的字符串
\think\helper\Str::random($length = 16)
// 字符串转小写
\think\helper\Str::lower($value)
// 字符串转大写
\think\helper\Str::upper($value)
// 获取字符串的长度
\think\helper\Str::length($value)
// 截取字符串
\think\helper\Str::substr($string, $start, $length = null)