From 19e072b2afc20375bca2dc465a918277ec9ff8fd Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Mon, 8 Jul 2002 20:49:45 +0000 Subject: [PATCH] + Accessing as $string{3} works too. + Added to all examples. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@88108 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/substr.xml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/reference/strings/functions/substr.xml b/reference/strings/functions/substr.xml index 927bc27bf0..4b4a26892f 100644 --- a/reference/strings/functions/substr.xml +++ b/reference/strings/functions/substr.xml @@ -1,5 +1,5 @@ - + @@ -32,10 +32,17 @@ Basic <function>substr</function> usage ]]> @@ -47,9 +54,11 @@ $rest = substr("abcdef", 0, 8); // returns "abcdef" Using a negative <parameter>start</parameter> ]]> @@ -73,10 +82,12 @@ $rest = substr("abcdef", -3, 1); // returns "d" Using a negative <parameter>length</parameter> ]]>