Skip to content

Function: array_key_exists() ​

array_key_exists<T>(key, array): boolean

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

Check if the given key or index exists in the array.

Type Parameters ​

T ​

T

Parameters ​

key ​

number

The key to check

array ​

T[]

The source array

Returns ​

boolean

True if the key exists

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