PHP to Ruby
Convert PHP code into Ruby!
-
key
Posted on September 5th, 2009 No commentsThe key() function in PHP returns the index element 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 key() function.
Leave a reply


