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

    Posted on September 11th, 2009 RubyLove No comments

    The pos() function is only an alias of current, which returns the key and value of the element the current array pointer is pointing to. However since Ruby doesn’t have an internal array pointer, this function does not have a Ruby equivalent.

    For further information about pos(), see current().

    Leave a reply