public function get($key, $default = null)
    {
        $hash = $this->key_to_hash($key);
        if (array_key_exists($hash, $this->array)) {
            return $this->array[$hash];
        } else {
            return $default;
        }
    }
public function get($key, $default = null)
    {
        $hash = $this->key_to_hash($key);
        if (array_key_exists($hash, $this->array)) {
            return $this->array[$hash];
        } else {
            return $default;
        }
    }
public function get ( $ key , $ default = null ) { $ hash = $ this -> key_to_hash ( $ key ) ; if ( array_key_exists ( $ hash , $ this -> array ) ) { return $ this -> array [ $ hash ] ; } else { return $ default ; } }
Get the value corresponding to the given key.

If the key does not exist in the map, return the default.

This is the object method equivalent of the magic $map[$key].

@param mixed $key
@param mixed $default
@return mixed
@api
Get the value corresponding to the given key .