sorry510/string

String Class

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/sorry510/string

dev-master 2020-01-09 08:07 UTC

This package is auto-updated.

Last update: 2025-09-28 18:53:26 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