Page MenuHomePhorge
Diviner libphutil Tech Docs phutil_is_natural_list

function phutil_is_natural_list($list)
libphutil Technical Documentation (Core Utilities)

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.