1--TEST-- 2Overriding SplFixedArray::offsetGet() only 3--FILE-- 4<?php 5 6class MyArray extends SplFixedArray { 7 public function offsetGet($key) { 8 return "prefix_" . parent::offsetGet($key); 9 } 10} 11 12$arr = new MyArray(1); 13var_dump(isset($arr[0])); 14$arr[0] = "abc"; 15var_dump(isset($arr[0])); 16var_dump($arr[0]); 17 18?> 19--EXPECT-- 20bool(false) 21bool(true) 22string(10) "prefix_abc" 23