sorry510 / string
String Class
dev-master
2020-01-09 08:07 UTC
This package is auto-updated.
Last update: 2025-03-28 17:54:00 UTC
README
一个字符串的工具类
how to use
composer require sorry510/string
demo
<?php
require './vendor/autoload.php';
use sorry510\StringUtil;
$a = StringUtil::chain(' hello ')->trim()->toUpper()->slice(1, 2); // EL,由__toString()转换
$a = StringUtil::chain(' hello ')->trim()->toUpper()->slice(1, 2)->value(); // EL