SYNOPSIS

mixed * m_entry( mapping map, mixed key)

DESCRIPTION

Query the mapping map for the entry for key and return all its values in one array.

If map does not contain key, 0 is returned.

Note

m_add(E) can be used to add all values for an entry at once.

USAGE

mapping m = ([ 1:"foo":-1, 2:"bar":-2 ]);

m_entry(m, 0) // 0
m_entry(m, 1) // ({ "foo", -1 })

HISTORY

  • introduced (3.2.10)