Ruby on Rails
PhpArray_key_exists

There’s a few ways to do this. This is one of them:


h = {1 => 'one', 2 => 'two'}
h.include? 2