Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Get string length
<?php strlen(string $string): int
<?php         ['method' => $method, 'statusCode' => $statusCode] = $request;



        $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).'...';
<?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         );



        if (isset($results['REQUEST_URI'], $results['QUERY_STRING']) &&

            strlen($results['QUERY_STRING']) > 0 &&

            strpos($results['REQUEST_URI'], '?') === false) {

            $results['REQUEST_URI'] .= '?'.$results['QUERY_STRING'];

        }
<?php         if ($octaneResponse->response instanceof StreamedResponse) {

            ob_start(function ($data) use ($swooleResponse) {

                if (strlen($data) > 0) {

                    $swooleResponse->write($data);

                }
<?php         $content = $octaneResponse->response->getContent();



        if (($length = strlen($content)) === 0) {

            $swooleResponse->end();



            return;