opxcore/string

OpxCore 字符串工具库。

dev-main 2021-03-09 14:39 UTC

This package is auto-updated.

Last update: 2024-09-09 23:14:00 UTC


README

Str::startsWith($haystack, $needle) - 判断字符串 $haystack 是否以字符串 $needle 开头。返回 true 或 false。 Str::substr($string, $offset, $length) - 提取字符串的一部分。 Str::cutFromStart($string, $count) - 从字符串 $string 的开头移除 $count 个符号