PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

Ds\Hashable::equals - Determines whether an object is equal to the current instance. | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

Ds\Hashable::equals

(PECL ds >= 1.0.0)

Ds\Hashable::equalsDetermines whether an object is equal to the current instance.

説明

abstract public bool Ds\Hashable::equals ( object $obj )

Determines whether another object is equal to the current instance.

This method allows objects to be used as keys in structures such as Ds\Map and Ds\Set, or any other lookup structure that honors this interface.

注意:

It's guaranteed that obj is an instance of the same class.

警告

It's important that objects which are equal also have the same hash value. See Ds\Hashable::hash().

パラメータ

obj

The object to compare the current instance to, which is always an instance of the same class.

返り値

TRUE if equal, FALSE otherwise.


忘却曲線を使ってこの知識を確実に記憶に残す

フォーラムで「Ds\Hashable::equals - Determines whether an object is equal to the current instance.」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | Ds\Hashable::equals - Determines whether an object is equal to the current instance.」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: