strcspn()
strcspn - Find length of initial segment not matching maskSyntax
int strcspn (string $str1, string $str2, int $start, int $length)Arguments
- str1 - The first string.
- str2 - The second string.
- start - The start position of the string to examine.
- length - The length of the string to examine.
