<?php mb_str_split(string $string, int $length = 1, ?string $encoding = null): array
<?php public static function reverse(string $value) { return implode(array_reverse(mb_str_split($value))); }
<?php public function split($pattern, $limit = -1, $flags = 0) { if (filter_var($pattern, FILTER_VALIDATE_INT) !== false) { return collect(mb_str_split($this->value, $pattern)); } $segments = preg_split($pattern, $this->value, $limit, $flags);