strcspn

PHP 4, PHP 5, PHP 7, PHP 8
strcspn - Find length of initial segment not matching mask
Strcspn Online Tool
Manual
Code Examples

Example #1 strcspn example

Result: int(0) int(0) int(2) int(2) int(5) int(4)
PHP Version:


Example #2 of strcspn

PHP Version:


Function strcspn:

Strings Functions

Most used PHP functions