Re: Proposal for a new array function

From: Date: Tue, 09 Feb 2016 02:52:34 +0000
Subject: Re: Proposal for a new array function
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-91137@lists.php.net to get a copy of this message
Hi, On Tue, Feb 9, 2016 at 1:03 AM, Kinn Julião <kinncj@gmail.com> wrote: > And what's wrong with doing: > https://gist.github.com/kinncj/566bbc019be5707b01f2 ? Perfectly ok to me while it would be slower. BTW, it's easy and quick to detect array is real array with PHP7. It would be handy if kind of array can be returned. It should be different API. is_array() may be extended. bool is_array(mixed $var [, bool $is_real_array]); or bool is_array(mixed $var [, long $type_of_array]); where $type_of_array is bit flags such as PHP_ARRAY_REAL, PHP_ARRAY_HASH, PHP_ARRAY, PHP_ARRAY_RECLUSIVE, etc. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#91137) next »