From 4892a2df3c2fc7c8954f7eff67dd7db633557d90 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 16 Jun 2004 08:30:20 +0000 Subject: [PATCH] binary safety start and length optional parameters git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@161469 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/strcspn.xml | 10 +++++++++- reference/strings/functions/strspn.xml | 19 ++++++++++++++++++- 2 files changed, 27 insertions(+), 2 deletions(-) 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.