strcspn
laravel/framework
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Find length of initial segment not matching mask
<?php strcspn
(
string $string
,
string $characters
,
int $offset
=
0
,
?
int $length
=
null
):
int