From cf5a8006392f4fde7acaa2619f62d2e2a4fd2671 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Sat, 24 Jul 2004 18:47:20 +0000 Subject: [PATCH] Mention that the optional start and length parameters became available in PHP 4.3.0 #info provided by rioter git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@164235 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/strcspn.xml | 9 +++++---- reference/strings/functions/strspn.xml | 11 +++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) 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.