> On Dec 22, 2020, at 15:39, Josh Bruce <j...@joshbruce.dev> wrote:
> 
>>> tl;dr: Could add flags to is_array.
>> 
>> Please, no.
>> 
>> PHP needs fewer flags, not more.
>> 
>> -Mike
> 
> lol - There’s something to be said for that.
> 
> Thinking of “simple" bridges that can be built toward a possible larger
> discussion around naming and defining things and not adding more to the
> SL related to arrays until then while getting the capability…cause that
> part of the SL is pretty large. :)

I actually like the idea of flags added to `is_array()` for this.

Something like:

    is_array($value, ZERO_INDEXED | ASSOCIATIVE | INTEGER_INDEXED)

I’m not suggesting these names; they’re for illustration only.

Cheers,
Ben

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to