$fruits = new ArrayObject(array('apple', 'banana', 'orange')); // Retrieve the second element ('banana') from the array $second_fruit = $fruits->offsetGet(1); echo $second_fruit; // Output: bananaIn this example, we create an `ArrayObject` containing the fruits 'apple', 'banana', and 'orange'. We then use `offsetGet()` to retrieve the second element ('banana') by passing the index 1 as the method's parameter. Finally, we print out the value of the `$second_fruit` variable. The `ArrayObject` class is part of the PHP standard library, so no additional package or library is required.