From 3247b212f4f29afb19b94ef56cda8ee1d05eb0c3 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Tue, 19 Oct 2010 04:25:38 +0000 Subject: [PATCH] Fixed bug #53054 (Strings variable parsing - complex syntax) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304495 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/types/string.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/language/types/string.xml b/language/types/string.xml index 29845edd4b..afe5fea72d 100644 --- a/language/types/string.xml +++ b/language/types/string.xml @@ -617,6 +617,11 @@ echo "This is ${great}"; // Works echo "This square is {$square->width}00 centimeters broad."; + +// Works, quoted keys only work using the curly brace syntax +echo "This works: {$arr['key']}"; + + // Works echo "This works: {$arr[4][3]}";