From 637b01bb16787b2ac9e95cd6634d1bc4fef20b67 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 21 Nov 2007 15:59:26 +0000 Subject: [PATCH] Negative values of start and length (bug #42710) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@246623 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/strspn.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reference/strings/functions/strspn.xml b/reference/strings/functions/strspn.xml index 8c7dfaff82..7b5345af2c 100644 --- a/reference/strings/functions/strspn.xml +++ b/reference/strings/functions/strspn.xml @@ -1,5 +1,5 @@ - + strspn @@ -59,6 +59,7 @@ $var = strspn("42 is the answer, what is the question ...", "1234567890"); The start position of the string to examine. + Negative value counts position from the end of a string. @@ -67,6 +68,7 @@ $var = strspn("42 is the answer, what is the question ...", "1234567890"); The length of the string to examine. + Negative value sets length from the end of a string.