Hi,

On Tue, Feb 9, 2016 at 1:03 AM, Kinn Julião <kin...@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
yohg...@ohgaki.net

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to