> On Dec 22, 2020, at 8:22 AM, Josh Bruce <j...@joshbruce.dev> wrote: > > >> For example, with >> >> $a = ['foo', 'bar', 'baz’]; >> >> `is_list()` will return `true`, but if you run `$a` through `asort()`, >> `is_list()` will return `false` because the keys are no longer >> consecutive integers, but is there any doubt this is still a list? >> Maybe in a pure sense, it’s not, but I think this could be confusing. >> > > tl;dr: Could add flags to is_array.
Please, no. PHP needs fewer flags, not more. -Mike -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php