Pike v8.1 release 6

Method Yp.Map()->match()


Method match

string match(string key)
string res = Yp.Map()[ key ]

Description

Search for the key key. If there is no key in the map, 0 (zero) will be returned, otherwise the string matching the key will be returned.

Note

key must match exactly, no pattern matching of any kind is done.