Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Get string length
<?php strlen(string $string): int
<?php         if (! $testCaseFound) {

            foreach (array_reverse($loadedClasses) as $loadedClass) {

                $offset = 0 - strlen($suiteClassName);



                if (stripos(substr($loadedClass, $offset - 1), '\\'.$suiteClassName) === 0 ||

                    stripos(substr($loadedClass, $offset - 1), '_'.$suiteClassName) === 0) {
<?php     private function bootDatasets(string $testsPath): void

    {

        assert(strlen($testsPath) > 0);



        $files = (new PhpUnitFileIterator)->getFilesAsArray($testsPath, '.php');
<?php         $feedbackItems = (string) preg_replace('/ +\\d+ \\/ \\d+ \\( ?\\d+%\\)\\s*/', '', $feedbackItems);



        $actualTestCount = strlen($feedbackItems);

        for ($index = 0; $index < $actualTestCount; $index++) {

            $this->printFeedbackItem($feedbackItems[$index]);

        }
<?php         $closestScopeDatasetKey = array_reduce(

            array_keys($matchingDatasets),

            fn (string|int|null $keyA, string|int|null $keyB): string|int|null => $keyA !== null && strlen((string) $keyA) > strlen((string) $keyB) ? $keyA : $keyB

        );



        if ($closestScopeDatasetKey === null) {
<?php     public static function endsWith(string $target, string $search): bool

    {

        $length = strlen($search);

        if ($length === 0) {

            return true;

        }