php8.5
Home/ Manual/ ds / pair/ Ds\Pair::__construct

Ds\Pair::__construct

PHP function Edit on GitHub ✎

(PECL ds >= 1.0.0)

Creates a new instance

Description

Ds\Pair::__construct([mixed $key], [mixed $value])

Creates a new instance using a given key and value.

Parameters

key

The key.

value

The value.

Source: reference/ds/ds/pair/construct.xml · from the official PHP manual (php/doc-en)