Skip to content

Function: array_keys() ​

array_keys<T>(array): number[]

Defined in: src/php-arrays.ts:131

Return all the keys or a subset of the keys of an array.

Type Parameters ​

T ​

T

Parameters ​

array ​

T[]

The source array

Returns ​

number[]

The array keys (indices)

Documentation of 1.0.13 , built from cf61d3b on 1.0.13 by pipeline #2985011498 on 2026-10-21.