PHP to Ruby
Convert PHP code into Ruby!
-
prev
Posted on August 27th, 2009 No commentsThe 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


