Supported Versions: PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8
Get string length
<?php mb_strlen(string $string, ?string $encoding = null): int
<?php     public function toHaveLength(int $number, string $message = ''): self

    {

        if (is_string($this->value)) {

            Assert::assertEquals($number, mb_strlen($this->value), $message);



            return $this;

        }
<?php     public function skipOnPhp(string $version): self

    {

        if (mb_strlen($version) < 2) {

            throw new InvalidArgumentException('The version must start with [<] or [>].');

        }