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 8175733 commit f7b44a3Copy full SHA for f7b44a3
Inp.php
@@ -9,7 +9,9 @@
9
10
namespace MaplePHP\Validate;
11
12
+use ErrorException;
13
use Exception;
14
+use MaplePHP\DTO\MB;
15
use MaplePHP\Validate\Interfaces\InpInterface;
16
use MaplePHP\DTO\Format\Str;
17
use DateTime;
@@ -66,12 +68,14 @@ public static function value(mixed $value): self
66
68
67
69
/**
70
* Get value string length
- * @param string $value
71
+ * @param string $value
72
* @return int
73
+ * @throws ErrorException
74
*/
75
public function getLength(string $value): int
76
{
- return strlen($value);
77
+ $mb = new MB($value);
78
+ return $mb->strlen();
79
}
80
81
0 commit comments