PHP to Ruby
Convert PHP code into Ruby!
-
current
Posted on September 8th, 2009 No commentsThe 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


