check sizee string laravel

PHP
<?php
$str = 'Hello World!';
echo strlen($str); // 12
?>
Source

Also in PHP: