From 207206a6379b337caaf205cb2f4020ebc178cd1e Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Sat, 3 Jul 2004 12:13:06 +0000 Subject: [PATCH] integrate aidan's comments: added wordwrap and integrate some user notes git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@162587 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/substr.xml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/reference/strings/functions/substr.xml b/reference/strings/functions/substr.xml index 65f5157c39..019a63aeff 100644 --- a/reference/strings/functions/substr.xml +++ b/reference/strings/functions/substr.xml @@ -1,5 +1,5 @@ - + @@ -68,8 +68,8 @@ $rest = substr("abcdef", -3, 1); // returns "d" returned will contain at most length characters beginning from start (depending on the length of string). If string is less - than start characters long, &false; will be - returned. + than or equal to start characters long, &false; + will be returned. If length is given and is negative, then that many @@ -94,8 +94,11 @@ $rest = substr("abcdef", -3, -1); // returns "de" See also strrchr, - substr_replace, ereg, - trim and mb_substr. + substr_replace, + ereg, + trim, + mb_substr and + wordwrap.