$usingMbString
$usingMbString : boolean
Internal flag to enable or disable the `mbstring` extension usage.
Class StringBuilder - The core component for string manipulations and encoding support.
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.
multiByteStringReplace(string|array|mixed $search, string|array|mixed $replace, string $subject, null|integer $count = null) : string|array
Replace all occurrences of the search string with the replacement string.
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 | $subject | The string being searched and replaced on. |
null|integer | $count | This will hold the number of matched and replaced values. |
Returns a string with the replaced values.