• PHP Video Tutorials

PHP - Ds\Hashable::equals() Function



Ds\Hashable::equals() function can determine whether an object is equal to the current instance.

Syntax

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

Ds\Hashable::equals() function can allow objects to be used as keys in structures such as Ds\Map and Ds\Set, or any other lookup structure that honors this interface.

Ds\Hashable::equals() function can return true if equal, or false otherwise.

php_function_reference.htm
Advertisements