Results of 1 - 3 of about 3 for HashableObject (0.001 sec.)
- Adds values to the set 10845
- « Set Ds\Set::allocate » PHP Manual Set Adds values to the set Ds\Set::add (PECL ds >= 1.0.0) Ds
...
例2 Ds\Set::add() example using objects <?php class HashableObject implements \ Ds \ Hashable { /** * An arbitrary va ...
tdClass ()); // Adding multiple instances of equal hashable objects will only add the first. $set -> add (new \ Hash ...
ableObject ( 1 )); $set -> add (new \ HashableObject ( 1 )); $set -> add (new \ HashableObject ( 2 )); ...
$set -> add (new \ HashableObject ( 2 )); var_dump ( $set ); ?> 上の例の出力は、 たと ...
-
https://man.plustar.jp/php/ds-set.add.html
- [similar]
- Associates a key with a value 10361
- « Ds\Map::pairs Ds\Map::putAll » PHP Manual Map Associates a key with a value Ds\Map::put (PECL
...
p::put() example using objects as keys <?php class HashableObject implements \ Ds \ Hashable { /** * An arbitrary va ...
lass (), 4 ); // Using multiple instances of equal hashable objects will overwrite previous values. $map -> put (new ...
\ HashableObject ( 1 ), 5 ); $map -> put (new \ HashableObject ( 1 ...
), 6 ); $map -> put (new \ HashableObject ( 2 ), 7 ); $map -> put (new \ HashableObject ( 2 ...
-
https://man.plustar.jp/php/ds-map.put.html
- [similar]
- Returns a scalar value to be used as a hash value 6678
- « Ds\Hashable::equals Sequence » PHP Manual Hashable Returns a scalar value to be used as a hash
...
ue. 例 例1 Ds\Hashable::hash() example <?php class HashableObject implements \ Ds \ Hashable { private $name ; priva ...
-
https://man.plustar.jp/php/ds-hashable.hash.html
- [similar]
PREV
1
NEXT