From 37036f13a797507de771c1ab35466d39b4ef39bb Mon Sep 17 00:00:00 2001 From: Torben Wilson Date: Wed, 26 Aug 2009 06:34:00 +0000 Subject: [PATCH] Clarified what will happen when attempting to access an undefined array index. Addresses Bug #49202. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@287729 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/types/array.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/language/types/array.xml b/language/types/array.xml index 5c38444ab0..894986018e 100644 --- a/language/types/array.xml +++ b/language/types/array.xml @@ -69,6 +69,15 @@ echo $arr[12]; // 1 A value can be any PHP type. + + + Attempting to access an array key which has not been defined is + the same as accessing any other undefined variable: + an E_NOTICE-level error message will be + issued, and the result will be NULL. + + +