Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Get string length
<?php strlen(string $string): int
<?php         $this->clear();

        $this->output->write("<fg=red>$symbol</> $message");


        $this->lineLength = strlen($symbol) + 1 + strlen($message);



        $this->counter++;

    }
<?php         if ($hasBody && ! isset($headers['content-length'])) {

            $headers['content-length'] = [strlen($this->getBody())];

        }
<?php         $contextBuilder = new ContextBuilder;

        curl_setopt($this->curlHandleNext, CURLOPT_HEADERFUNCTION, function ($ch, $header) use ($contextBuilder) {

            if (! preg_match('/:\s*/', $header)) {

                return strlen($header);

            }

            [$name, $value] = preg_split('/:\s*/', $header, 2);

            $name = strtolower($name);
<?php                 $contextBuilder->setTraceId($value);

            }



            return strlen($header);

        });
<?php         curl_setopt($this->curlHandleNext, CURLOPT_WRITEFUNCTION, function ($ch, $chunk) use (&$body) {

            $body .= $chunk;



            return strlen($chunk);

        });



        curl_exec($this->curlHandleNext);
<?php         curl_setopt($this->curlHandleResult, CURLOPT_POSTFIELDS, $jsonData);

        curl_setopt($this->curlHandleResult, CURLOPT_HTTPHEADER, [

            'Content-Type: application/json',

            'Content-Length: ' . strlen($jsonData),

        ]);

        curl_exec($this->curlHandleResult);

        if (curl_errno($this->curlHandleResult) > 0) {
<?php         socket_sendto($sock, $message, strlen($message), 0, '3.219.198.164', 8125);

        socket_close($sock);

    }

}
<?php }



if ($_GET['error'] ?? false) {

    strlen();

}



if ($_GET['fatal_error'] ?? false) {
<?php if ($_SERVER['REQUEST_METHOD'] === 'POST') {

    $body = file_get_contents('php://input');

    $bodySize = round(strlen($body) / 1024 / 1024);

    echo "Received {$bodySize}Mb";

    return;

}
<?php     }



    if ($event['error'] ?? false) {

        strlen();

    }



    if ($event['fatal_error'] ?? false) {
<?php }



if ($_GET['error'] ?? false) {

    strlen();

}



if ($_GET['fatal_error'] ?? false) {