PHP字符串操作庫:Stringy

Stringy是一個PHP字符串操作庫,支持多字節。 提供包括OO的方法鏈和一個程序式風格的靜態封裝。測試兼容PHP 5.3+和 HHVM。靈活源于underscore.string.js。
- Requiring/Loading
- OO and Procedural
- Implemented Interfaces
- Methods
- at
- camelize
- chars
- collapseWhitespace
- contains
- containsAll
- containsAny
- countSubstr
- create
- dasherize
- endsWith
- ensureLeft
- ensureRight
- first
- getEncoding
- humanize
- insert
- isAlpha
- isAlphanumeric
- isBlank
- isHexadecimal
- isJson
- isLowerCase
- isSerialized
- isUpperCase
- last
- length
- longestCommonPrefix
- longestCommonSuffix
- longestCommonSubstring
- lowerCaseFirst
- pad
- padBoth
- padLeft
- padRight
- regexReplace
- removeLeft
- removeRight
- replace
- reverse
- safeTruncate
- shuffle
- slugify
- startsWith
- substr
- surround
- swapCase
- tidy
- titleize
- toAscii
- toLowerCase
- toSpaces
- toTabs
- toTitleCase
- toUpperCase
- trim
- truncate
- underscored
- upperCamelize
- upperCaseFirst </ul> </li> </ul>
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!