diff --git a/reference/strings/functions/strcspn.xml b/reference/strings/functions/strcspn.xml index 55663b7b88..d4d5a6ab4a 100644 --- a/reference/strings/functions/strcspn.xml +++ b/reference/strings/functions/strcspn.xml @@ -1,5 +1,5 @@ - + @@ -14,12 +14,20 @@ intstrcspn stringstr1 stringstr2 + intstart + intlength Returns the length of the initial segment of str1 which does not contain any of the characters in str2. + + As of PHP 4.0B1 this function is binary safe. + Additionally it accepts two optional integer + parameters that can be used to define the starting position + and the length of the string to examine. + See also strspn. diff --git a/reference/strings/functions/strspn.xml b/reference/strings/functions/strspn.xml index 6385e27ed2..9f61fe4003 100644 --- a/reference/strings/functions/strspn.xml +++ b/reference/strings/functions/strspn.xml @@ -1,5 +1,5 @@ - + @@ -14,6 +14,8 @@ intstrspn stringstr1 stringstr2 + intstart + intlength Returns the length of the initial segment of @@ -34,6 +36,21 @@ $var = strspn("42 is the answer, what is the question ...", "1234567890"); will assign 2 to $var, because the string "42" will be the longest segment containing characters from "1234567890". + + As of PHP 4.0B1 this function is binary safe. + Additionally it accepts two optional integer + parameters that can be used to define the starting position + and the length of the string to examine. + + + +]]> + + + See also strcspn.