diff --git a/reference/strings/functions/strcspn.xml b/reference/strings/functions/strcspn.xml index b19d753441..f37fd8da7e 100644 --- a/reference/strings/functions/strcspn.xml +++ b/reference/strings/functions/strcspn.xml @@ -1,5 +1,5 @@ - + @@ -23,9 +23,10 @@ contain any of the characters in str2. - Additionally it accepts two optional integer - parameters that can be used to define the starting position - and the length of the string to examine. + As of PHP 4.3.0, strcspn accepts two optional + integer parameters that can be used to define the + start position and the + length of the string to examine. ¬e.bin-safe; diff --git a/reference/strings/functions/strspn.xml b/reference/strings/functions/strspn.xml index 84def95118..56dfa23007 100644 --- a/reference/strings/functions/strspn.xml +++ b/reference/strings/functions/strspn.xml @@ -1,5 +1,5 @@ - + @@ -36,10 +36,13 @@ $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.3.0, strspn accepts two optional + integer parameters that can be used to define the + start position and the + length of the string to examine. + - Additionally it accepts two optional integer - parameters that can be used to define the starting position - and the length of the string to examine.