Browse: Home / Classes / Learndash_Arr /

Learndash_Arr::exists

Learndash_Arr::exists( array|ArrayAccess|ArrayObject $array,  int|string $key )

Returns true if the given key exists in the array, false otherwise.


Description #


Parameters #

$array

(<span class="arrayarray<int|">string,mixed>|ArrayAccess|ArrayObject) (Required) Array.

$key

(int|string) (Required) Key.


Return #

(bool)


Source #

File: includes/helpers/class-learndash-arr.php


Changelog #

Changelog
Version Description
4.5.0 Introduced.