Name

haskey — Check if map has a certain key

Synopsis

boolean haskey ( map MAP ,
  any KEY );
 

Parameters

map MAP

any KEY

Return

boolean

Description

Determines whether the map MAP contains a pair with the key KEY. Returns true if this is true.

Usage

  haskey($["a":1, "b":2], "a") -> true
  haskey($["a":1, "b":2], "c") -> false