« Ds\Map::xor
Ds\Pair::clear »
PHP Manual
Data Structures
The Pair class
検索
The Pair class
(PECL ds >= 1.0.0)
はじめに
A pair is used by
Ds\Map
to pair keys with values.
クラス概要
class
Ds\Pair
implements
JsonSerializable
{
/* メソッド */
public
function
__construct
(
mixed
$key
= ?
,
mixed
$value
= ?
)
public
function
clear
():
void
public
function
copy
():
Ds\Pair
public
function
isEmpty
():
bool
public
function
toArray
():
array
}
目次
Ds\Pair::clear
— Removes all values
Ds\Pair::__construct
— Creates a new instance
Ds\Pair::copy
— Returns a shallow copy of the pair
Ds\Pair::isEmpty
— Returns whether the pair is empty
Ds\Pair::jsonSerialize
— Returns a representation that can be converted to JSON
Ds\Pair::toArray
— Converts the pair to an array
関連キーワード:
Pair
pair
clear
copy
values
construct
mixed
isEmpty
toArray
Structures
used
keys
概要
implements
JsonSerializable
目次
Removes
Creates
instance
shallow
whether
empty
jsonSerialize
representation
converted
関連する関数・ページ:
ds-pair.clear
ds-pair.isempty
ds-pair.copy
ds-pair.toarray
ds-pair.construct
ds-pair.jsonserialize