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

    Posted on August 27th, 2009 RubyLove No comments

    The prev() function in PHP moves the internal array pointer to the previous element (rewinds). However in Ruby, there is no internal array pointer - as such Ruby doesn’t have an equivalent to PHP’s prev() function.

    Leave a reply