PHP » GoLang |
login |
register |
about
|
GoLang Ds\Map::intersect
request it (380)
GoLang replacement for PHP's Ds\Map::intersect
[edit | history]
Ds\Map::intersect(PECL ds >= 1.0.0) Ds\Map::intersect — Creates a new map by intersecting keys with another map Description
public Ds\Map Ds\Map::intersect
( Ds\Map
$map
)
Creates a new map containing the pairs of the current instance whose keys
are also present in the given
Parameters
Return Values
The key intersection of the current instance and another ExamplesExample #1 Ds\Map::intersect() example
<?php The above example will output something similar to: object(Ds\Map)#3 (2) { [0]=> object(Ds\Pair)#4 (2) { ["key"]=> string(1) "b" ["value"]=> int(2) } [1]=> object(Ds\Pair)#5 (2) { ["key"]=> string(1) "c" ["value"]=> int(3) } } |
more
Recently updated
more
Most requested
more
Last requests
|