It depends. is $2 the key?
Question: Do you know how ini files work? Because hash tables work exactly the same way.
An ini file is like:
[section]
key=value
a hash table is like:
[tablename]
key=value
But in memory.. not a file
So $hget(tablename, key) would be value, just like $readini(file, section, key)