Re: Re: Fwd: Re: #25494 [Com]: array_merge allowing "false" as argument (silent when non-array is passed)
| From: | Derick Rethans | Date: | Wed, 08 Oct 2003 13:13:09 +0000 |
| Subject: | Re: Re: Fwd: Re: #25494 [Com]: array_merge allowing "false" as argument (silent when non-array is passed) | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4761@lists.php.net to get a copy of this message | ||
On Wed, 8 Oct 2003, Zeev Suraski wrote:
> I don't think it extends there very naturally, or at all for that
> matter. NULL is special because it's what empty variables evaluate to, and
> makes for a very typical initial value of an array.
I agree with that, allowing NULL instead of an array is fine...
autoconverting scalars to an array sounds too magical to me.
Derick
--
"Interpreting what the GPL actually means is a job best left to those
that read the future by examining animal entrails."
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
International PHP Magazine http://php-mag.net/
-------------------------------------------------------------------------