GithubHelp home page GithubHelp logo

str-helpers's Introduction

php字符串常用操作封装库

介绍


将常用的一些字符串操作封装到一起方便调用


安装


# -vvv是方便为了看下载进度
composer require death_satan/str-helpers -vvv

方法列表

方法名 参数 作用 创建时间
lowercase string $string 字符串全部转小写 2022-03-11
uppercase string $string 字符串全部转大写 2022-03-11
caramelize string $camelCaps 驼峰转蛇形 2022-03-11
toClassify string $string 下划线转大驼峰 2022-03-11
toCamelize string $string 下划线转小驼峰 2022-03-11
toPinYinConvert string $string,int $option = PINYIN_DEFAULT 汉字转拼音 2022-03-11
toPinYinPermalink string $string,string $delimiter = '-',int $option = PINYIN_DEFAULT 汉字转拼音链接式 2022-03-11
toPinYinAbbr string $string,string $delimiter = '-',int $option = PINYIN_DEFAULT 汉字转拼音首字母式 2022-03-11
toPinYinSentence string $string,string $delimiter = '-',int $option = PINYIN_DEFAULT 汉字转拼音(带字符整段) 2022-03-11
toPinYinName string $string,int $option = PINYIN_DEFAULT 汉字转拼音(姓名) 2022-03-11
random int $rand = 32 随机生成字符串 2022-03-11
afterLast string $string,string $find 返回字符串中指定值最后一次出现后的所有内容 2022-03-11
finish string $string,string $end 将指定的字符串修改为以指定的值结尾的形式: 2022-03-11
start string $string,string $start 将给定的值添加到字符串的开始位置 2022-03-11
startWith string $string,string $start 判断给定的字符串是否为给定值的开头 2022-03-11

str-helpers's People

Contributors

zds-s avatar

Stargazers

李云龙 avatar Roman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.