vanderlee / multibyte
A collection of multibyte functions.
Installs: 4 053
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 0
Open Issues: 1
Requires
- php: >=5.2.0
This package is auto-updated.
Last update: 2024-11-26 05:17:41 UTC
README
Version 1.1.1
Copyright © 2015-2016 Martijn van der Lee. MIT Open Source license applies.
Introduction
This is just a collection of multibyte (mb_*) functions to augment the builtin functions.
Unittests included.
Methods
mb_explode
array mb_explode($pattern, $subject[, $limit = -1[, $flags = 0 ] ])
Multibyte version of preg_split
, including all it's flags.
The $pattern
behaves like the patterns of mb_split
, all other arguments and the return is like preg_split.
mb_trim
string mb_trim($string)
Trims whitespace from both the left and right side of the string.
mb_ucfirst
string mb_ucfirst($string[, string $encoding = mb_internal_encoding() ])
Make a string's first character uppercase.
mb_ucwords
string mb_ucwords($string[, string $encoding = mb_internal_encoding() ])
Uppercase the first character of each word in a string.