The Pair class

From Get docs
Php/docs/latest/class.ds-pair /
Revision as of 10:12, 3 January 2022 by Notes (talk | contribs) (Page commit)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


The Pair class

Introduction

(No version information available, might only be in Git)

A pair is used by Ds\Map to pair keys with values.

Class synopsis

class Ds\Pair implements JsonSerializable {

/* Methods */

public __construct(mixed $key = ?, mixed $value = ?)

public clear(): void
public copy(): Ds\Pair
public isEmpty(): bool
public toArray(): array

}

Table of Contents


© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.ds-pair.php