Object reference

Pair

The Pair object, its operations, examples and notes.

Object description

Stores a pair of related values. The pair exposes key and value as public properties; they are not functions.

Properties

key ⇒ mixed
The key component of the pair. It can be read or assigned directly, for example $pair->key.
value ⇒ mixed
The value component of the pair. It can be read or assigned directly, for example $pair->value.

Object functions