How to Calculate String Length in Laravel 9
In this lesson, we are going to see how to calculate string length in Laravel 9, the length helper method is used to find a given string length.
The Str::length helper method
The length() method returns the length of the given string.
use Illuminate\Support\Str;
Str::length('Darija Coding');
// 13