MasterPress 1.3.1 is a compatibility release for PHP 8 and WordPress 5.7. It still remains backwards compatible with older PHP versions.
WOOF_Collection :: offsetGet( Integer $offset )
- Mixed The item at the index
Implements the offsetGet method from PHP’s ArrayAccess interface, to allow a direct numeric array access on this collection (see example). This method actually forwards to the WOOF_Collection::eq method, so any numeric indexes that work in that method also work here (including negative indexes to access items from the end of the collection).
Note: this method is not intended to be called directly.