We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3168771 commit 70d6d9dCopy full SHA for 70d6d9d
src/Util/Str.php
@@ -48,26 +48,6 @@ public static function utf8(string $input, string $encoding = null)
48
);
49
}
50
51
- /**
52
- * Split the given string into an array of characters.
53
- *
54
- * @param string $input
55
56
- * @return \GrahamCampbell\ResultType\Result<string[],string>
57
- */
58
- public static function split(string $input)
59
- {
60
- $result = \mb_str_split($input, 1, 'UTF-8');
61
-
62
- if ($result === false) {
63
- /** @var \GrahamCampbell\ResultType\Result<string[],string> */
64
- return Error::create('Multibyte split failed.');
65
- }
66
67
68
- return Success::create($result);
69
70
71
/**
72
* Search for a given substring of the input.
73
*
0 commit comments