Re: Array dereferencing of scalars
| From: | Rowan Collins | Date: | Sun, 14 Jun 2015 21:52:50 +0000 |
| Subject: | Re: Array dereferencing of scalars | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-86642@lists.php.net to get a copy of this message | ||
On 14 June 2015 04:33:16 BST, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote:
>Hi Rowan,
>
>On Thu, Jun 11, 2015 at 5:59 PM, Rowan Collins
><rowan.collins@gmail.com>
>wrote:
>> This one has given a different message because of it being a
>non-string
>> value, but would be equally fatal if you tried to call any undefined
>> function. Would coercing NULL to an imaginary function which returns
>NULL
>> actually be useful for anything?
>
>
>For example, getting NULL handler as the default.
>This is useful like $v=NULL;$v[1][2][3];
I was talking specifically about using NULL as a *function*, not an *array*.