Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Return part of a string
<?php substr(string $string, int $offset, ?int $length = null): string
<?php         $dots = str_repeat('.', max($terminalWidth - strlen($method.$url.$duration.$memory) - 16, 0));



        if (empty($dots) && ! $this->output->isVerbose()) {

            $url = substr($url, 0, $terminalWidth - strlen($method.$duration.$memory) - 15 - 3).'...';

        } else {

            $dots .= ' ';

        }
<?php     protected function calculateElapsedTime(string $elapsed): float

    {

        if (Str::endsWith($elapsed, 'ms')) {

            return substr($elapsed, 0, -2);

        }



        if (Str::endsWith($elapsed, 'µs')) {
<?php             $swooleResponse->write($content);

        } else {

            for ($offset = 0; $offset < $length; $offset += $this->chunkSize) {

                $swooleResponse->write(substr($content, $offset, $this->chunkSize));

            }

        }