Page MenuHomePhorge
Diviner Arcanist Tech Docs phutil_is_natural_list

function phutil_is_natural_list($list)
Arcanist Technical Documentation ()

Test if a list has the natural numbers (1, 2, 3, and so on) as keys, in order.

Parameters
array$list
Return
boolTrue if the list is a natural list.