Ruby on Rails
|
Screencasts
|
Download
|
Documentation
|
Weblog
|
Community
|
Source
Ruby on Rails
PhpArray_key_exists
Home Page
|
All Pages
|
Recently Revised
|
Feed
There’s a few ways to do this. This is one of them:
h = {1 => 'one', 2 => 'two'} h.include? 2
Updated on May 18, 2007 05:26 by
pestilence669
(72.207.37.149)
Edit
|
Back in time
(1 older versions)