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

    Posted on September 8th, 2009 RubyLove No comments

    The current() function in PHP returns the key and value 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 current() function.

    Leave a reply