isUsingMbString()
isUsingMbString() : boolean
Check if the `mbstring` extension usage is enabled or not.
Returns
boolean —Is the component using mbstring
.
Interface CoreStringBuilderInterface - Static methods for core string manipulations.
stringSplit(string|mixed $string, integer $chunkLength = 1) : array|false
Convert a string to an array.
string|mixed | $string | The string for conversion to array. |
integer | $chunkLength | The chunk length for string splitting. |
The string converted to an array or false on invalid parameter given.
stringReplace(string|array|mixed $search, string|array|mixed $replace, string|array $subject, null|integer $count = null) : string|array
Replace all occurrences of the search string with the replacement string. It also supports arrays.
string|array|mixed | $search | The string for searching or an array with multiple values. |
string|array|mixed | $replace | The replacement string or an array with multiple values. |
string|array | $subject | The string or array being searched and replaced on. |
null|integer | $count | This will hold the number of matched and replaced values. |
Returns a string or an array with the replaced values.