PHP » GoLang |
login |
register |
about
|
|
Ds\Map::diff(PECL ds >= 1.0.0) Ds\Map::diff — Creates a new map using keys that aren't in another map Description
public Ds\Map Ds\Map::diff
( Ds\Map
$map
)
Returns the result of removing all keys from the current instance that are
present in a given
Parameters
Return Values
The result of removing all keys from the current instance that are
present in a given ExamplesExample #1 Ds\Map::diff() example
<?phpThe above example will output something similar to:
object(Ds\Map)#3 (1) {
[0]=>
object(Ds\Pair)#4 (2) {
["key"]=>
string(1) "a"
["value"]=>
int(1)
}
}
|
more
Most requested
more
Last requests
|