[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    Re: [DOC-CVS] svn: /phpdoc/en/trunk/language/types/ array.xml
From:       Peter Cowburn <petercowburn () gmail ! com>
Date:       2016-08-25 11:56:16
Message-ID: CAPg3XxJ8U=vJSnyz7xK_iAowQea+hm81fwOkCbC4LRgAxQvF1A () mail ! gmail ! com
[Download RAW message or body]


On 25 August 2016 at 12:41, Christoph Michael Becker <cmb@php.net> wrote:

> cmb                                      Thu, 25 Aug 2016 11:41:19 +0000
>
> Revision: http://svn.php.net/viewvc?view=revision&revision=339937
>
> Log:
> Document behavior of array dereferencing scalar values
>
> 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    2016-08-24 12:48:19 UTC
> (rev 339936)
> +++ phpdoc/en/trunk/language/types/array.xml    2016-08-25 11:41:19 UTC
> (rev 339937)
> @@ -352,6 +352,12 @@
>        issued, and the result will be &null;.
>      </para>
>     </note>
> +   <note>
> +    <para>
> +     Array dereferencing a scalar value which is not a <type>string</type>
> +     silently yields &null;, i.e. without issuing an error message.
> +    </para>
> +   </note>
>    </sect3>


I think this could be worded better, and would be better placed in the
(currently one sentence) introductory paragraph under "Accessing array
elements with square bracket syntax". rather than as a note stuck to the
bottom of that section.


>




>    <sect3 xml:id="language.types.array.syntax.modifying">
>
>
> --
> PHP Documentation Commits Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic