Utilities and Tools: loopedArray
Robert Peake (contact me)
The loopedArray object simulates a "looped" array data type that loops such
that all indexes of (n*sizeof(loopedArray) + k) returns the same element as
indexes of k for all integers k, n.
The loopedArray object attempts to emulate many of the standard array functions
with this paradigm, and adds two additional functions, "before," and "after,"
which return the element before and after a given element, respecting the
property above.
Click here for detailed information about this class on phpclasses.org