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
- construct [1.12.11+]
Sets the key and value properties of the Pair object. Returns
truewhen the properties have been assigned. - key [1.12.11+]
The key component of the pair.
- output [1.12.11+]
Returns a string representation of the pair in the format: [key : value].
- value [1.12.11+]
The value component of the pair.

There are no comments on this page.
Comments are welcome and encouraged, including disagreement and critique. However, this is not a space for abuse. Disagreement is welcome; personal attacks, harassment, or hate will be removed instantly. This site reflects personal opinions, not universal truths. If you can’t distinguish between the two, this probably isn’t the place for you. The system temporarily stores IP addresses and browser user agents for the purposes of spam prevention, moderation, and safeguarding. This data is automatically removed after fourteen days. Your email address is stored so that replies can be sent to your email address.
Comments powered by BalfComment