svn: /phpdoc/en/trunk/language/types/ array.xml

From: Date: Wed, 26 Aug 2009 06:34:00 +0000
Subject: svn: /phpdoc/en/trunk/language/types/ array.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-4759@lists.php.net to get a copy of this message
torben Wed, 26 Aug 2009 06:34:00 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=287729 Log: Clarified what will happen when attempting to access an undefined array index. Addresses Bug #49202. Bug: http://bugs.php.net/49202 (Open) php array documentation missing information on invalid key return value Changed paths: U phpdoc/en/trunk/language/types/array.xml Modified: phpdoc/en/trunk/language/types/array.xml =================================================================== --- phpdoc/en/trunk/language/types/array.xml 2009-08-26 05:59:59 UTC (rev 287728) +++ phpdoc/en/trunk/language/types/array.xml 2009-08-26 06:34:00 UTC (rev 287729) @@ -69,6 +69,15 @@ A value can be any PHP type. </para> + <note> + <para> + Attempting to access an array key which has not been defined is + the same as accessing any other undefined variable: + an <constant>E_NOTICE</constant>-level error message will be + issued, and the result will be <literal>NULL</literal>. + </para> + </note> + <informalexample> <programlisting role="php"> <![CDATA[

« previous php.doc.cvs (#4759) next »