mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
81a0c36227
commit
37036f13a7
1 changed files with 9 additions and 0 deletions
|
@ -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[
|
||||
|
|
Loading…
Reference in a new issue