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
This commit is contained in:
Torben Wilson 2009-08-26 06:34:00 +00:00
parent 81a0c36227
commit 37036f13a7

View file

@ -69,6 +69,15 @@ echo $arr[12]; // 1
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[