From edf9f39f9bf4ee7ef24fbd5e61dc244cbd1dd92a Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 5 Nov 2008 09:00:09 +0000 Subject: [PATCH] Move info about returning false (bug #45967) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@268331 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/substr.xml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/reference/strings/functions/substr.xml b/reference/strings/functions/substr.xml index 5716559d79..f16f7938eb 100644 --- a/reference/strings/functions/substr.xml +++ b/reference/strings/functions/substr.xml @@ -1,5 +1,5 @@ - + substr @@ -49,6 +49,10 @@ will start at the start'th character from the end of string. + + If string is less than or equal to + start characters long, &false; will be returned. + Using a negative <parameter>start</parameter> @@ -72,9 +76,7 @@ $rest = substr("abcdef", -3, 1); // returns "d" If length is given and is positive, the string returned will contain at most length characters beginning from start (depending on the length of - string). If string is less - than or equal to start characters long, &false; - will be returned. + string). If length is given and is negative, then that many