Convert PHP code into Ruby!
RSS icon Email icon Home icon
  • key

    Posted on September 5th, 2009 RubyLove No comments

    The key() function in PHP returns the index element of the element the current array pointer is pointing to. However in Ruby, there is no internal array pointer - as such Ruby doesn’t have an equivalent to PHP’s key() function.

    Leave a reply