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




        $format = strlen($date) === 8 ? 'm-d-yH:iA' : 'Y-m-dH:i';

        $dt = DateTime::createFromFormat($format, $date . $time);

        $lastModified = $dt ? $dt->getTimestamp() : (int) strtotime("$date $time");
<?php     public function fileSize(): int

    {

        return strlen($this->contents);

    }



    public function mimeType(): string
<?php     public function listContents(string $path, bool $deep): iterable

    {

        $prefix = rtrim($this->preparePath($path), '/') . '/';

        $prefixLength = strlen($prefix);

        $listedDirectories = [];



        foreach ($this->files as $path => $file) {
<?php                 }



                $dummyFilename = self::DUMMY_FILE_FOR_FORCED_LISTING_IN_FLYSYSTEM_TEST;

                if (substr($path, -strlen($dummyFilename)) === $dummyFilename) {

                    continue;

                }
<?php     public function stripPrefix(string $path): string

    {


        return substr($path, strlen($this->prefix));

    }



    public function stripDirectoryPrefix(string $path): string