Gen. partnerAlgotech

PHP function strcspn()

Find length of initial segment not matching mask

|
September 11, 2019

Availability in PHP 4.0

Find length of initial segment not matching mask

Parameters

Parameter Data type Default value Note
$str1 string not The first string.
$str2 string not The second string.
$start int null, The start position of the string to examine.
$length int null The length of the string to examine.

Return values

int

the length of the segment as an integer.

Other resources

Official strcspn documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.